Check for null

This commit is contained in:
Martin Fietz 2015-09-23 23:19:37 +02:00
parent a89edfcad4
commit b6a0c1aa1a

View File

@ -102,13 +102,17 @@ public class PreferenceActivity extends ActionBarActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.preferences);
if(instance.preferenceController != null) {
instance.preferenceController.onCreate();
}
}
@Override
public void onResume() {
super.onResume();
if(instance.preferenceController != null) {
instance.preferenceController.onResume();
}
}
}
}