Skip to content

Commit 48e3973

Browse files
[AssetExtractor] Check for null before trying to print error msg
1 parent bb9366a commit 48e3973

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
@@ -68,7 +68,10 @@ private static Boolean copyFile(InputStream input, OutputStream output) {
6868
in.close();
6969
input.close();
7070
} catch (IOException e) {
71-
Log.e(TAG, e.getMessage());
71+
String msg = e.getMessage();
72+
if (null != msg) {
73+
Log.e(TAG, msg);
74+
}
7275
return false;
7376
}
7477
return true;

0 commit comments

Comments
 (0)