Closed arestivo closed 5 years ago
Thanks for reporting that bug, I'll look into it. Can you tell me your phone and Android version?
Moto g 2015 / Marshmallow
Just thought I'd add the "OpenCSV" library via a Gradle dependency instead of keeping the copy of the JAR embedded in the project tree. In passing, I noticed that http://opencsv.sourceforge.net/dependencies.html lists Commons Lang-3 as a dependency of OpenCSV.
From looking a bit at the OpenCSV code, it seems that the missing "StringUtils" class is invoked if OpenCSV encounters quotes in the middle of a value. The reporter of this issue may have created a comment or category name with quotes in it.
The trigger for the crash is probably that the Twisty Timer export code did not use "CSVWriter", so the written values were not being escaped to make them compatible with the CSV format. That made "CSVParser" resort to some edge cases that involved Commons Lang3 "StringUtils". I've changed the export code on my active branch to use "CSVWriter", so things will be escaped properly if ever that gets released.
The root problem is that there is no dependency on Commons Lang3, which is required by OpenCSV. Unless you can think of a reason not to, I will add the OpenCSV dependency, and its knock-on dependencies, to the Gradle scripts and remove the JAR file.
Finally managed to export my old times from Cube Companion but it seems a jar is missing from this latest build that is preventing me from importing them.