aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-02 20:16:39 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-02 20:16:39 -0700
commitf11af4586d886553f5017621f11a4a873662726a (patch)
treef1edeca2da9cea0fc07bce5e7dad1dc289ccab84 /src/github/daneren2005
parentb7430917ae32ce49e46aff4e35f2aa8a7b19e27f (diff)
downloaddsub-f11af4586d886553f5017621f11a4a873662726a.tar.gz
dsub-f11af4586d886553f5017621f11a4a873662726a.tar.bz2
dsub-f11af4586d886553f5017621f11a4a873662726a.zip
Fix random crash
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/activity/SettingsActivity.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SettingsActivity.java b/src/github/daneren2005/dsub/activity/SettingsActivity.java
index 56c3e387..91703f16 100644
--- a/src/github/daneren2005/dsub/activity/SettingsActivity.java
+++ b/src/github/daneren2005/dsub/activity/SettingsActivity.java
@@ -245,7 +245,11 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer
@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
- Log.d(TAG, "Preference changed: " + key);
+ // Random error I have no idea how to reproduce
+ if(sharedPreferences == null) {
+ return;
+ }
+
update();
if (Constants.PREFERENCES_KEY_HIDE_MEDIA.equals(key)) {