blinskey / greek-reference

An ancient Greek lexicon and grammar for Android.
https://play.google.com/store/apps/details?id=com.benlinskey.greekreference
Apache License 2.0
29 stars 5 forks source link

NPE when checking Perseus tool option setting #151

Closed blinskey closed 9 years ago

blinskey commented 9 years ago
java.lang.NullPointerException
    at android.preference.PreferenceManager.getDefaultSharedPreferencesName(PreferenceManager.java:374)
    at android.preference.PreferenceManager.getDefaultSharedPreferences(PreferenceManager.java:369)
    at com.benlinskey.greekreference.views.detail.lexicon.LexiconDetailFragment.perseusToolOptionDisabled(LexiconDetailFragment.java:131)
    at com.benlinskey.greekreference.views.detail.lexicon.LexiconDetailFragment.onPrepareOptionsMenu(LexiconDetailFragment.java:118)
    at android.app.Fragment.performPrepareOptionsMenu(Fragment.java:1808)
    at android.app.FragmentManagerImpl.dispatchPrepareOptionsMenu(FragmentManager.java:1967)
    at android.app.Activity.onPreparePanel(Activity.java:2592)
    at android.support.v4.app.FragmentActivity.onPrepareOptionsPanel(FragmentActivity.java:469)
    at android.support.v7.app.ActionBarActivity.superOnPrepareOptionsPanel(ActionBarActivity.java:284)
    at android.support.v7.app.ActionBarActivityDelegate.onPrepareOptionsPanel(ActionBarActivityDelegate.java:204)
    at android.support.v7.app.ActionBarActivity.onPrepareOptionsPanel(ActionBarActivity.java:256)
    at android.support.v4.app.FragmentActivity.onPreparePanel(FragmentActivity.java:458)
    at android.support.v7.app.ActionBarActivity.superOnPreparePanel(ActionBarActivity.java:280)
    at android.support.v7.app.ActionBarActivityDelegate$1.onPreparePanel(ActionBarActivityDelegate.java:84)
    at android.support.v7.widget.WindowCallbackWrapper.onPreparePanel(WindowCallbackWrapper.java:54)
    at android.support.v7.internal.app.ToolbarActionBar$ToolbarCallbackWrapper.onPreparePanel(ToolbarActionBar.java:516)
    at android.support.v7.internal.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:459)
    at android.support.v7.internal.app.ToolbarActionBar$1.run(ToolbarActionBar.java:69)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5314)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:678)
    at dalvik.system.NativeStart.main(Native Method)
blinskey commented 9 years ago

Possibly related to issue #150.

blinskey commented 9 years ago

Duplicate of #150.