New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.StringIndexOutOfBoundsException #12

ape-report opened this Issue Mar 31, 2018 · 1 comment


None yet
2 participants

ape-report commented Mar 31, 2018

Affected version: v1.9beta

I am not sure whether this has been fixed in the HEAD or not.
I try to reproduce it in HEAD but I cannot build the app.
This happens when you click Current pdf or text and then click select without actually selecting anything.


// java.lang.RuntimeException: An error occurred while executing doInBackground()
//  at android.os.AsyncTask$3.done(
//  at java.util.concurrent.FutureTask.finishCompletion(
//  at java.util.concurrent.FutureTask.setException(
//  at
//  at android.os.AsyncTask$SerialExecutor$
//  at java.util.concurrent.ThreadPoolExecutor.runWorker(
//  at java.util.concurrent.ThreadPoolExecutor$
//  at
// Caused by: java.lang.StringIndexOutOfBoundsException: length=0; regionStart=0; regionLength=-1
//  at java.lang.String.startEndAndLength(
//  at java.lang.String.substring(
//  at com.mschlauch.comfortreader.SettingsLoader.loadTextfromFilePath(
//  at com.mschlauch.comfortreader.CRPreferenceActivity$MyPreferenceFragment$7$1.doInBackground(
//  at com.mschlauch.comfortreader.CRPreferenceActivity$MyPreferenceFragment$7$1.doInBackground(
//  at android.os.AsyncTask$
//  at
//  ... 4 more

This comment has been minimized.


mschlauch commented Apr 19, 2018

That was actually a bug. I fixed it now on master, should be available with the next fdroid release.
Thank you for posting!

@mschlauch mschlauch closed this Apr 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment