Android IndexOutOfBoundsException
<p>I'm getting crash reports from my app in the marketplace throwing an IndexOutOfBoundsException outside of my code with the following stack trace:</p>

<pre><code>java.lang.IndexOutOfBoundsException: charAt: -2 &lt; 0
1. android.text.SpannableStringBuilder.charAt(SpannableStringBuilder.java:110)
2. android.text.TextUtils.getCapsMode(TextUtils.java:1573)
3. android.view.inputmethod.BaseInputConnection.getCursorCapsMode(BaseInputConnection.java:273)
4. com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:202)
5. com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:57)
6. android.os.Handler.dispatchMessage(Handler.java:99)
7. android.os.Looper.loop(Looper.java:123)
8. android.app.ActivityThread.main(ActivityThread.java:4595)
9. java.lang.reflect.Method.invokeNative(Native Method)
10. java.lang.reflect.Method.invoke(Method.java:521)
11. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
12. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
13. dalvik.system.NativeStart.main(Native Method)
</code></pre>

<p>It looks like someone has reported this to Google per this issue:
<a href="http://code.google.com/p/android/issues/detail?id=6040" rel="nofollow">http://code.google.com/p/android/issues/detail?id=6040</a></p>

<p>Since there's been no response from Google on this I'm wondering if anyone here has run into this, and more importantly, found a workaround since I can't reproduce it myself and am at a loss as to how to debug it.</p>

<p>I appreciate any insight anyone can offer.</p>
