-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
App crash when calling showAlignBottom #192
Comments
Hi could you share your crashlytics log and the library version? |
Firebase Crashlytics Text: Skydoves Version :1.3.1 Skydoves Related Code In My app
After Initializing it in Fragment I passed the reference to Recylerview Adapter something like this |
I guess from your reporting, the user tried to show the balloon when the fragment or view already has been detached from the Window (Activity). It seems to need a check before showing or dismissing. if (fragment.isAdded) {
// show or dismiss
} |
Thanks bro.I will try it and let you know it works or not |
Interesting. I actually removed this very check December last year. Thought it was no longer needed. PS. I also checked for if (!fragment.isAdded() || !fragment.isResumed()) {
// Do NOT show
} Looking through my code, I see that I did add some lifecycle handling. Maybe this is a possible solution to this problem? .setLifecycleOwner(fragment) |
@znakeeye |
I'm seeing a similar crash when showing a Balloon. The reason in my case is that
|
@renard314 |
Took a quick glance at the changes. I believe your fix reduces the likelihood of this crash. It doesn't fix it 100%. Those conditions must be checked at the time the runnable gets executed. No? |
It seems a concurrency & timing issue. If you find any improvements by using the SNAPSHOT, please let me know. 😄 |
These changes included in the new stable |
Fatal Exception: java.lang.NullPointerException
Attempt to read from field 'int android.view.ViewGroup$LayoutParams.width' on a null object reference
com.skydoves.balloon.Balloon$showAlignBottom$$inlined$show$1.run
Same code working great with showAlignTop
If you want I can share Firebase Crashlytics logs.
Piyush Sinha
Testbook.com
The text was updated successfully, but these errors were encountered: