Scaronthesky / UK-Gebaerden_Muensterland

Android app for browsing and learning the sign language "Unterstützte Kommunikation Gebärden Münsterland."
GNU General Public License v3.0
0 stars 5 forks source link

Sometimes, using the Search throws an NPE. #51

Closed Scaronthesky closed 8 years ago

Scaronthesky commented 8 years ago

06-05 16:10:59.162 19183 19183 D AndroidRuntime: Shutting down VM 06-05 16:10:59.188 19183 19183 E AndroidRuntime: FATAL EXCEPTION: main 06-05 16:10:59.188 19183 19183 E AndroidRuntime: Process: de.lebenshilfe_muenster.uk_gebaerden_muensterland, PID: 19183 06-05 16:10:59.188 19183 19183 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.app.Activity.getSystemService(java.lang.String)' on a null object reference 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at de.lebenshilfe_muenster.uk_gebaerden_muensterland.sign_browser.SignBrowserFragment.onCreateOptionsMenu(SignBrowserFragment.java:139) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.app.Fragment.performCreateOptionsMenu(Fragment.java:2133) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.app.FragmentManagerImpl.dispatchCreateOptionsMenu(FragmentManager.java:1945) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.app.Activity.onCreatePanelMenu(Activity.java:2834) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:298) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:85) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.onCreatePanelMenu(AppCompatDelegateImplBase.java:241) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:85) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.support.v7.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:443) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.support.v7.app.ToolbarActionBar$1.run(ToolbarActionBar.java:60) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.os.Looper.loop(Looper.java:135) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5343) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) 06-05 16:10:59.188 19183 19183 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) 06-05 16:10:59.227 835 1557 I WindowManager: Screen frozen for +393ms due to AppWindowToken{19c5842b token=Token{34cb447a ActivityRecord{10afa8a5 u0 de.lebenshilfe_muenster.uk_gebaerden_muensterland/.activities.MainActivity t4133}}} 06-05 16:10:59.233 835 1557 W ActivityManager: Force finishing activity 1 de.lebenshilfe_muenster.uk_gebaerden_muensterland/.activities.MainActivity

Scaronthesky commented 8 years ago

Stackoverflow question