mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-05 17:45:49 +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) {
|
||||
boolean isEnabled = enabledMap.get(whitelistType);
|
||||
boolean isEnabled = false;
|
||||
if(enabledMap.containsKey(whitelistType) && enabledMap.get(whitelistType) != null) {
|
||||
isEnabled = enabledMap.get(whitelistType);
|
||||
}
|
||||
if (!isEnabled) {
|
||||
return false;
|
||||
}
|
||||
@ -173,4 +176,4 @@ public class Whitelist {
|
||||
public static void setEnabled(WhitelistType whitelistType, boolean enabled) {
|
||||
enabledMap.put(whitelistType, enabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user