NightWhistler/PageTurner — Issue #72: Crash on pageUp
Author: NightWhistler
Created: 2012-02-07 06:34:53+00:00
State: open

java.lang.StringIndexOutOfBoundsException
at java.lang.String.substring(String.java:1651)
at android.text.SpannableStringInternal.(SpannableStringInternal.java:30)
at android.text.SpannedString.(SpannedString.java:34)
at android.text.SpannedString.subSequence(SpannedString.java:38)
at net.nightwhistler.pageturner.view.SinglePageStrategy.findStartOfPage(SinglePageStrategy.java:107)
at net.nightwhistler.pageturner.view.SinglePageStrategy.pageUp(SinglePageStrategy.java:135)
at net.nightwhistler.pageturner.view.BookView.pageUp(BookView.java:301)
at net.nightwhistler.pageturner.activity.ReadingActivity.doPageCurl(ReadingActivity.java:658)
at net.nightwhistler.pageturner.activity.ReadingActivity.pageUp(ReadingActivity.java:816)
at net.nightwhistler.pageturner.activity.ReadingActivity.onSwipeRight(ReadingActivity.java:1070)
at net.nightwhistler.pageturner.view.NavGestureDetector.onFling(NavGestureDetector.java:112)
at android.view.GestureDetector.onTouchEvent(GestureDetector.java:1116)
at net.nightwhistler.pageturner.activity.ReadingActivity$1.onTouch(ReadingActivity.java:207)
at net.nightwhistler.pageturner.view.BookView.onTouchEvent(BookView.java:193)
at net.nightwhistler.pageturner.activity.ReadingActivity.onTouchEvent(ReadingActivity.java:373)
at android.app.Activity.dispatchTouchEvent(Activity.java:2121)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1861)
at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2371)
at android.view.ViewRoot.handleMessage(ViewRoot.java:2006)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
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:912)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:670)
at dalvik.system.NativeStart.main(Native Method)