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 8db85255..8397c9cb 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)