Skip to content

Commit a6e1da5

Browse files
committed
fix Exception
Signed-off-by: Alex <[email protected]>
1 parent d22356a commit a6e1da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/owncloud/android/operations/RenameFileOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private boolean isValidNewName() throws IOException {
172172
try {
173173
testFile.createNewFile(); // return value is ignored; it could be 'false' because
174174
// the file already existed, that doesn't invalidate the name
175-
} catch (IOException e) {
175+
} catch (Exception e) {
176176
Log_OC.i(TAG, "Test for validity of name " + newName + " in the file system failed");
177177
return false;
178178
}

0 commit comments

Comments
 (0)