mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-21 01:07:32 +01:00
fix: Fix NPE when opening video from different App (#53)
This commit is contained in:
parent
2710d50f66
commit
3c0408fa09
@ -101,7 +101,10 @@ public class Whitelist {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isWhitelisted(WhitelistType whitelistType) {
|
private static boolean isWhitelisted(WhitelistType whitelistType) {
|
||||||
boolean isEnabled = enabledMap.get(whitelistType);
|
boolean isEnabled = false;
|
||||||
|
if(enabledMap.containsKey(whitelistType) && enabledMap.get(whitelistType) != null) {
|
||||||
|
isEnabled = enabledMap.get(whitelistType);
|
||||||
|
}
|
||||||
if (!isEnabled) {
|
if (!isEnabled) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -173,4 +176,4 @@ public class Whitelist {
|
|||||||
public static void setEnabled(WhitelistType whitelistType, boolean enabled) {
|
public static void setEnabled(WhitelistType whitelistType, boolean enabled) {
|
||||||
enabledMap.put(whitelistType, enabled);
|
enabledMap.put(whitelistType, enabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user