From a3d786b1913195c95582e4c3031d5be6efd22cc2 Mon Sep 17 00:00:00 2001 From: serso Date: Sat, 19 Mar 2016 19:05:26 +0100 Subject: [PATCH] Fix for exception --- .../android/calculator/preferences/PreferencesFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/solovyev/android/calculator/preferences/PreferencesFragment.java b/app/src/main/java/org/solovyev/android/calculator/preferences/PreferencesFragment.java index e579c6fa..c7471576 100644 --- a/app/src/main/java/org/solovyev/android/calculator/preferences/PreferencesFragment.java +++ b/app/src/main/java/org/solovyev/android/calculator/preferences/PreferencesFragment.java @@ -244,6 +244,9 @@ public class PreferencesFragment extends org.solovyev.android.material.preferenc if (!supportsHeaders()) { return; } + if (getView() == null) { + return; + } final ListView listView = getListView(); if (show) {