Skip to content

Commit 09e158e

Browse files
authored
Do not throw when FileStore cannot create a dir. (#3541)
There is a problem with the file structure on some devices #3269. When we did the FileStore refactor, we turned a silent failure into a runtime exception, causing apps to crash on some of these devices. Although this does not fix the root problem, it reverts to the silent behaviour we had before. We still need to investigate the root cause of this.
1 parent 525b580 commit 09e158e

File tree

1 file changed

+1
-1
lines changed
  • firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/persistence

1 file changed

+1
-1
lines changed

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/persistence/FileStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private static synchronized File prepareBaseDir(File file) {
185185
}
186186
}
187187
if (!file.mkdirs()) {
188-
throw new IllegalStateException("Could not create Crashlytics-specific directory: " + file);
188+
Logger.getLogger().e("Could not create Crashlytics-specific directory: " + file);
189189
}
190190
return file;
191191
}

0 commit comments

Comments
 (0)