NewbieGuide icon indicating copy to clipboard operation
NewbieGuide copied to clipboard

App get crashed

Open nivritgupta opened this issue 7 years ago • 1 comments

using your library app tutorials works fine on the very first time but whenever app is inactive for few hours and i am open the app and it get crashed , i don't know why here is the log

Exception java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.app.Activity.findViewById(int)' on a null object reference

maybe this line from your library cause the exact error

if (anchor == null) { anchor = activity.findViewById(android.R.id.content); }

do you have any idea how to solve this .

Regards

nivritgupta avatar Jul 28 '18 20:07 nivritgupta

Can l have a see to the code where you use NewbieGuide. My guess is that the Activity that shows NewbieGuide has been recycled, but still trying to show it.

huburt-Hu avatar Jul 30 '18 03:07 huburt-Hu