Saturday, September 9, 2017

TooltipCompat crashing but I'm not using anywhere on my code

Leave a Comment

I just updated to support library 26 and released a beta and I've started getting a crash on crashlytics for something that as far as I know I'm not even using. I haven't ever seen the issue myself. Anyone else seen this?

Full stacktrace:

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference        at android.support.v7.widget.TooltipPopup.show(TooltipPopup.java:79)        at android.support.v7.widget.TooltipCompatHandler.show(TooltipCompatHandler.java:155)        at android.support.v7.widget.TooltipCompatHandler.access$000(TooltipCompatHandler.java:39)        at android.support.v7.widget.TooltipCompatHandler$1.run(TooltipCompatHandler.java:53)        at android.os.Handler.handleCallback(Handler.java:739)        at android.os.Handler.dispatchMessage(Handler.java:95)        at android.os.Looper.loop(Looper.java:135)        at android.app.ActivityThread.main(ActivityThread.java:5280)        at java.lang.reflect.Method.invoke(Method.java)        at java.lang.reflect.Method.invoke(Method.java:372)        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:963)        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758) 

Edit: I might have finally reproduced it, long press on Android 4.4 on the overflow menu of the toolbar. Going to try to create a sample now.

Edit: It is definitely long press of overflow menu on toolbar that does it but I can't reproduce it with a simple project. I know have 2 apps crashing when this happens.

1 Answers

Answers 1

Figured it out. Found this on the issue tracker https://issuetracker.google.com/issues/64594124

Basically if you have your own tooltip.xml file it will conflict with the new tooltip of the design library.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment