diff --git a/integrations/java/app/revanced/tiktok/settingsmenu/SettingsMenu.java b/integrations/java/app/revanced/tiktok/settingsmenu/SettingsMenu.java index f79d16b714..fc43153b79 100644 --- a/integrations/java/app/revanced/tiktok/settingsmenu/SettingsMenu.java +++ b/integrations/java/app/revanced/tiktok/settingsmenu/SettingsMenu.java @@ -2,6 +2,7 @@ import android.content.Context; import android.content.Intent; +import android.os.Bundle; import android.preference.PreferenceFragment; import android.view.View; import android.widget.FrameLayout; @@ -35,7 +36,8 @@ public static Object createSettingsEntry(String entryClazzName, String entryInfo * @return Whether the settings menu should be initialized. */ public static boolean initializeSettings(AdPersonalizationActivity base) { - if (!base.getIntent().getExtras().getBoolean("revanced", false)) return false; + Bundle extras = base.getIntent().getExtras(); + if (extras != null && !extras.getBoolean("revanced", false)) return false; SettingsStatus.load();