Skip to content

Commit a1f740c

Browse files
committed
Issue nostra13#989: Catch IncompatibleClassChangeError
1 parent 1209068 commit a1f740c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/src/com/nostra13/universalimageloader/utils/StorageUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ public static File getCacheDirectory(Context context, boolean preferExternal) {
7070
externalStorageState = Environment.getExternalStorageState();
7171
} catch (NullPointerException e) { // (sh)it happens (Issue #660)
7272
externalStorageState = "";
73+
} catch (IncompatibleClassChangeError e) { // (sh)it happens too (Issue #989)
74+
externalStorageState = "";
7375
}
7476
if (preferExternal && MEDIA_MOUNTED.equals(externalStorageState) && hasExternalStoragePermission(context)) {
7577
appCacheDir = getExternalCacheDir(context);

0 commit comments

Comments
 (0)