From 6517b5002be27d64e7e072553bbd43c95bc1f9f8 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 9 May 2014 20:14:47 +0200 Subject: [PATCH] Fixed crash when opening settings for the first time. --- .../com/github/nutomic/controldlna/gui/PreferencesActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/nutomic/controldlna/gui/PreferencesActivity.java b/src/main/java/com/github/nutomic/controldlna/gui/PreferencesActivity.java index 2d734cd..937e922 100644 --- a/src/main/java/com/github/nutomic/controldlna/gui/PreferencesActivity.java +++ b/src/main/java/com/github/nutomic/controldlna/gui/PreferencesActivity.java @@ -106,7 +106,7 @@ public class PreferencesActivity extends PreferenceActivity * Updates summary of list preference (from current item). */ public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { - if (key.equals(KEY_ENABLE_WIFI_ON_START)) { + if (key.equals(KEY_ENABLE_WIFI_ON_START) && mEnableWifiOnStart != null) { mEnableWifiOnStart.setSummary(mEnableWifiOnStart.getEntry()); } }