Skip to content

PanelSlideListener on a null object reference #968

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

Open
ModirGithub opened this issue Jun 19, 2019 · 3 comments
Open

PanelSlideListener on a null object reference #968

ModirGithub opened this issue Jun 19, 2019 · 3 comments

Comments

@ModirGithub
Copy link

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo java.lang.NullPointerException: Attempt to invoke virtual method 'void com.sothree.slidinguppanel.SlidingUpPanelLayout.addPanelSlideListener(com.sothree.slidinguppanel.SlidingUpPanelLayout$PanelSlideListener)' on a null object reference

@peter-yeh
Copy link

did u initialise and declare the slider???

@ModirGithub
Copy link
Author

did u initialise and declare the slider???

crashed on Android 8.0.0
other version fixed

@ModirGithub
Copy link
Author

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo java.lang.NullPointerException: Attempt to invoke virtual method 'void com.sothree.slidinguppanel.SlidingUpPanelLayout.addPanelSlideListener(com.sothree.slidinguppanel.SlidingUpPanelLayout$PanelSlideListener)' on a null object reference

FIX this Bug by insert this cods after setContentView

if (Build.VERSION.SDK_INT == 26) { setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); } else { setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants