Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7782277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:29:30+00:00 2026-06-01T19:29:30+00:00

I am getting a mystery exception reported via the Android Market; a NullPointer in

  • 0

I am getting a mystery exception reported via the Android Market; a NullPointer in TextView getLeftFadingEdgeStrength(). I have never observed the exception on any of my test devices. It appears to be effecting a minority of users but I cannot trace it to a specific version of Android or release of my software.

The stack trace vanishes somewhere in the platform UI code, without reference to anything from my application. I’ve taken a fairly thorough search on Google and here for any hint of the problem, but without success.

I suspect it might be something to do with using a marquee ellipsize setting in one of my TextViews… and that the way I am doing this somehow exposes a bug in the UI widget code on some platforms or versions. But this is conjecture and I’m loath to spend too much time diving through the platform code chasing theories.

So, I thought I’d post the issue here and see if anyone has encountered a similar problem or can help to hone in on the precise issue.

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)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T19:29:32+00:00Added an answer on June 1, 2026 at 7:29 pm

    In case somebody else stumbles across this issue, I have one user reporting exact same crash on Android 2.3.5 device.

    nulljava.lang.NullPointerException
    at android.widget.TextView.getLeftFadingEdgeStrength(TextView.java:7449)
    at android.view.View.draw(View.java:7004)
    at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
    at android.view.View.draw(View.java:6936)
    …

    While I was not able to determine the exact reason for the crash, in my case I was able to resolve it by replacing android:ellipsize=”marquee” attribute in couple of TextViews to android:ellipsize=”end”. (According to Android source the crash occurs in getLeftFadingEdgeStrength method if the the text view is set to marquee.)

    The same code worked without issues on many devices and Android versions, so the crash was limited to only a small number of devices. What was somewhat specific to this particular device was that it was using an RTL language AND the offending TextView was involved in an animation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Getting an error running a Android unit test which extends ActivityInstrumentationTestCase2, and so want
I keep getting the following exception with a new resource Im making and i
This is a bit of a mystery to me since you have to be
Getting the following error, which I understand and have seen before. But one thing
Getting the following on any build running on CC.NET V1.6 on a server. I
Getting an odd problem with a unit test in my solution. One of the
Getting more and more familiar with DI but I still have few niggles. Read
Getting frustrated looking for answers for hours on this one... I have an .xml
I have a bit of a mystery here that I am not quite understanding
Getting this error: Invalid option file options on trying to invoke Astyle via C#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.