diff --git a/app/src/main/java/eu/faircode/email/FragmentOptions.java b/app/src/main/java/eu/faircode/email/FragmentOptions.java index a98d6959f2..0cbb62bc16 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptions.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptions.java @@ -195,7 +195,7 @@ public class FragmentOptions extends FragmentBase { .setOnDismissListener(new DialogInterface.OnDismissListener() { @Override public void onDismiss(DialogInterface dialog) { - if (!prefs.getBoolean("setup_advanced", false)) + if (pager != null && !prefs.getBoolean("setup_advanced", false)) pager.setCurrentItem(0); } })