diff --git a/app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java b/app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java index cda3cad10..6f26534fb 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java +++ b/app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java @@ -140,7 +140,9 @@ public class NewPipeSettings { int availableProviders = 0; for (ResolveInfo info : infoList) { - if (info.activityInfo.exported) availableProviders++; + if (info.activityInfo != null && info.activityInfo.enabled && info.activityInfo.exported) { + availableProviders++; + } } return availableProviders > 0;