Closed wkmeijer closed 6 years ago
I got an exception when I accept the permissions and then go back on install:
java.util.NoSuchElementException
at java.util.ArrayList$Itr.next(ArrayList.java:834)
at java.util.Collections.max(Collections.java:742)
at nl.tudelft.cs4160.trustchain_android.passport.ocr.TesseractOCR.giveStats(TesseractOCR.java:227)
at nl.tudelft.cs4160.trustchain_android.passport.ocr.TesseractOCR.cleanup(TesseractOCR.java:206)
at nl.tudelft.cs4160.trustchain_android.passport.ocr.TesseractOCR$3.run(TesseractOCR.java:124)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
Quick fix might be to remove the giveStats funtion
@klikooo very strange crash i got the same
I suppose it happens because the times list is still empty, could have added an if but its not that important
Ok, I'll do that, that's a bit less lazy.
It works now!
When permissions are denied, the manual input activity is opened. Fixes #31