GoogleDriveFileProvider shouldn't crash on invalid file names
mrpdaemon opened this issue · 1 comments
mrpdaemon commented
Got this backtrace on the developer console:
Caused by: java.lang.IllegalArgumentException: Invalid name /home/bolmail/BOL268706-SK-13-02-28-09-58-27.PDF
at org.mrpdaemon.sec.encfs.EncFSFileInfo.(EncFSFileInfo.java:71)
at org.mrpdaemon.android.encdroid.GoogleDriveFileProvider.fileToEncFSFileInfo(GoogleDriveFileProvider.java:110)
at org.mrpdaemon.android.encdroid.GoogleDriveFileProvider.listFiles(GoogleDriveFileProvider.java:415)
at org.mrpdaemon.android.encdroid.FileChooserActivity.fill(FileChooserActivity.java:350)
We should simply filter out these files instead of crashing.