Expected behavior
Comfort reader is expected to run smoothly prior to selecting options on ; current pdf or txt using select option on mobile application.
Actual behavior
When clicking on select option when on current pdf or txt settings, without selecting any pdf file or text causes the application to unexpectedly crash and close the application.
How to reproduce
- download comfort reader from the f-driod application.
- open application and go to settings.
- click on current pdf or txt
- without selecting anything, click on select
- application crashes
downloadable report of logcat
Link to download app from f-driod
https://f-droid.org/app/com.mschlauch.comfortreader
- version of the application : v 1.9.4
- last updated : 4/21/18
- Browser: f-driod / comfort reader
- Operating system: Andriod 7.0
Recording Of The Bug
logcat report of crash
04-27 16:27:29.065 30756 32572 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #10 04-27 16:27:29.065 30756 32572 E AndroidRuntime: Process: com.mschlauch.comfortreader, PID: 30756 04-27 16:27:29.065 30756 32572 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground() 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at android.os.AsyncTask$3.done(AsyncTask.java:318) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at java.util.concurrent.FutureTask.setException(FutureTask.java:223) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:242) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at java.lang.Thread.run(Thread.java:761) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: Caused by: java.lang.StringIndexOutOfBoundsException: length=0; regionStart=0; regionLength=-1 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at java.lang.String.substring(String.java:1931) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at com.mschlauch.comfortreader.SettingsLoader.loadTextfromFilePath(SettingsLoader.java:667) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at com.mschlauch.comfortreader.CRPreferenceActivity$MyPreferenceFragment$8$1.doInBackground(CRPreferenceActivity.java:432) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at com.mschlauch.comfortreader.CRPreferenceActivity$MyPreferenceFragment$8$1.doInBackground(CRPreferenceActivity.java:424) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at android.os.AsyncTask$2.call(AsyncTask.java:304) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 04-27 16:27:29.065 30756 32572 E AndroidRuntime: ... 4 more
Posted on Utopian.io - Rewarding Open Source Contributors
your right bro but it simmliars whit this issue https://github.com/mschlauch/comfortreader/issues
Leave a moderator's work for a moderator.....
Please don't comment on my post again of whatsoever...
Its my post and I don't intend to dent it.
Please do well do comply to my wish of not commenting on my post to avoid anything else.
Thank you.
hey @gutzygwin,
This is very similar to the issue on GitHub here
Thanks to the reference of @muhammadarif.
If you don't like community and users helping moderators you can leave. Do not Flag and downvote the comments of good users who are helping with the growth of Utopian.
Thank you
sachincool [Community-Manager]
Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.
[utopian-moderator]
Thank you for your reply. Its not a rule not to downvote others in utopian-io.... Its my post afterall.
I know its not right and I apologize for that but its left to the moderator to review. I do not like when others decide on their own free will to think of doing a moderator's work.
Thanks again for your reply.
We encourage such people, this is the whole point of this community. Did you just realize that now? people can do moderator work and get known for it. we removed moderators and left with only 3 mods in each category to help the community decide on which posts deserve the vote and which posts don't. He doesn't spam but helps in finding duplicates and Spammers. that is the Ideal community we are looking for.
of course, you don't like when your post is rejected because you didn't spend enough time in finding the duplicate before making this post.
Thank you
Nice work bro.
Waooow i appreciate ur effort to this community bro. Keep it up
Dope sh*t