diff --git a/app/src/main/java/com/github/dfa/diaspora_android/ui/PodSelectionDialog.java b/app/src/main/java/com/github/dfa/diaspora_android/ui/PodSelectionDialog.java index c843b34e..62a78550 100644 --- a/app/src/main/java/com/github/dfa/diaspora_android/ui/PodSelectionDialog.java +++ b/app/src/main/java/com/github/dfa/diaspora_android/ui/PodSelectionDialog.java @@ -145,7 +145,11 @@ public class PodSelectionDialog extends ThemedAppCompatDialogFragment { @Override protected AppSettings getAppSettings() { - return app.getSettings(); + if(isAdded()) { + return ((App) getActivity().getApplication()).getSettings(); + } else { + return new AppSettings(getContext().getApplicationContext()); + } } @OnItemSelected(R.id.podselection__dialog__spinner_profile)