Handling that annoying “java.lang.IndexOutOfBoundsException: getChars (5 … 0) has end before start” bug

StackOverflow https://stackoverflow.com/questions/2264818

  •  20-09-2019
  •  | 
  •  

Question

I get about 50 of these coming from my users each day.

I realise that this is a Motorola Droid bug - http://code.google.com/p/android/issues/detail?id=5164

Is there anyway I can catch this error in my code?

Was it helpful?

Solution

The exception seems to be triggered deep within TextView, so unless you subclass TextView or the variants you use and catch that exception in a protected method, there's not much you can do.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top