Catch illegalargument

Stephen Paul Weber created

Seen in the wild at this location for "scheme not found" bad URI in here somehow

Change summary

src/main/java/eu/siacs/conversations/persistance/FileBackend.java | 2 +
1 file changed, 2 insertions(+)

Detailed changes

src/main/java/eu/siacs/conversations/persistance/FileBackend.java 🔗

@@ -749,6 +749,8 @@ public class FileBackend {
             } catch (IOException e) {
                 throw new FileWriterException(file);
             }
+        } catch (final IllegalArgumentException e) {
+            throw new FileCopyException(R.string.error_file_not_found);
         } catch (final FileNotFoundException e) {
             throw new FileCopyException(R.string.error_file_not_found);
         } catch (final FileWriterException e) {