I get a secret message registered through the Android Market; NullPointer in TextView getLeftFadingEdgeStrength (). I have never seen exceptions on any of my test devices. This seems to work with a minority of users, but I can't track it down to a specific version of Android or the release of my software.
The stack trace disappears somewhere in the platform interface code, without a link to anything from my application. I did a thorough search on Google and here for any hint of a problem, but to no avail.
I suspect that this may be due to the use of the marquee ellipse parameter in one of my TextViews ... and that the way I do it somehow throws an error in the code of the user interface widget on some platforms or versions. But this is a hunch, and I don’t want to spend too much time diving through a code platform haunting theories.
So, I thought I posted this problem here and see if anyone has encountered a similar problem or can help push a specific problem away.
The stack trace follows:
java.lang.NullPointerException
at android.widget.TextView.getLeftFadingEdgeStrength(TextView.java:7321)
at android.view.View.draw(View.java:7004)
at android.view.View.buildDrawingCache(View.java:6695)
at android.view.ViewGroup.onAnimationStart(ViewGroup.java:1259)
at android.view.ViewGroup.drawChild(ViewGroup.java:1505)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.View.draw(View.java:6936)
at android.widget.FrameLayout.draw(FrameLayout.java:357)
at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1901)
at android.view.ViewRoot.draw(ViewRoot.java:1530)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1266)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1868)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3691)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
at dalvik.system.NativeStart.main(Native Method)
source
share