Skip to content

Commit 0cb32fc

Browse files
Exception message in AssetExtractor might be null
1 parent 0fb0b73 commit 0cb32fc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pdf2htmlEX/src/main/java/com/viliussutkus89/android/pdf2htmlex/AssetExtractor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ static Boolean extract(@NonNull AssetManager assetManager, @NonNull File outputD
3939
}
4040
}
4141
} catch (IOException e) {
42-
Log.e(TAG, e.getMessage());
42+
String msg = e.getMessage();
43+
if (null != msg) {
44+
Log.e(TAG, msg);
45+
}
4346
return false;
4447
}
4548
return true;

0 commit comments

Comments
 (0)