New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Racecondition crash on devices with physical menu button. #341

Closed
d4rken opened this Issue Apr 2, 2016 · 1 comment

Comments

1 participant
@d4rken
Owner

d4rken commented Apr 2, 2016

On devices with a physical menubutton, if you press it close to the moment when SD Maid switches the UI into or outof it's working state, onPrepareOptionsMenu will be called but without inflated menu.

java.lang.NullPointerException
        at eu.thedarken.sdm.corpsefinder.CorpseFinderFragment.onPrepareOptionsMenu(CorpseFinderFragment.java:101)
        at android.support.v4.app.m.a(FragmentManager.java:18073)
        at android.support.v4.app.h.onPreparePanel(FragmentActivity.java:16291)
        at android.support.v7.view.WindowCallbackWrapper.onPreparePanel(WindowCallbackWrapper.java:90)
        at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.onPreparePanel(AppCompatDelegateImplBase.java:285)
        at android.support.v7.view.WindowCallbackWrapper.onPreparePanel(WindowCallbackWrapper.java:90)
        at android.support.v7.app.ToolbarActionBar$ToolbarCallbackWrapper.onPreparePanel(ToolbarActionBar.java:567)
        at android.support.v7.app.ToolbarActionBar$ToolbarCallbackWrapper.onCreatePanelView(ToolbarActionBar.java:580)
        at android.support.v7.app.AppCompatDelegateImplV7.preparePanel(AppCompatDelegateImplV7.java:1279)
        at android.support.v7.app.AppCompatDelegateImplV7.a(AppCompatDelegateImplV7.java:12419)
        at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:241)
        at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:50)
        at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:2071)
        at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:4020)
        at android.view.ViewRootImpl.handleImeFinishedEvent(ViewRootImpl.java:3956)
        at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3060)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:177)
        at android.app.ActivityThread.main(ActivityThread.java:4947)
        at java.lang.reflect.Method.invokeNative(Method.java:-2)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
        at dalvik.system.NativeStart.main(NativeStart.java:-2)

@d4rken d4rken added bug c: Core labels Apr 2, 2016

@d4rken d4rken closed this Jun 26, 2016

@d4rken

This comment has been minimized.

Owner

d4rken commented Jun 26, 2016

Fixed in v4.2.9

@d4rken d4rken added c: General UI&UX and removed c: Core labels Jul 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment