mirror of
https://github.com/revanced/revanced-patches
synced 2025-02-15 06:46:49 +01:00
fix: Fix NPE when opening video from different App (#53)
This commit is contained in:
parent
c636aa7b64
commit
2de8215ab5
@ -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