Skip to content

Commit

Permalink
added catch block to capture resource not found exception (#460)
Browse files Browse the repository at this point in the history
Co-authored-by: NomanShoaib <[email protected]>
  • Loading branch information
mnoman09 and NomanShoaib authored Jul 10, 2023
1 parent 73959f9 commit 9787408
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public String getDatafile(Context context,@RawRes Integer datafileRes){
}
}
return safeLoadResource(context, datafileRes);
} catch (NullPointerException e){
} catch (NullPointerException | Resources.NotFoundException e){
logger.error("Unable to find compiled data file in raw resource",e);
}
return null;
Expand Down

0 comments on commit 9787408

Please sign in to comment.