Skip to content

Commit 9787408

Browse files
added catch block to capture resource not found exception (#460)
Co-authored-by: NomanShoaib <[email protected]>
1 parent 73959f9 commit 9787408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android-sdk/src/main/java/com/optimizely/ab/android/sdk/OptimizelyManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public String getDatafile(Context context,@RawRes Integer datafileRes){
364364
}
365365
}
366366
return safeLoadResource(context, datafileRes);
367-
} catch (NullPointerException e){
367+
} catch (NullPointerException | Resources.NotFoundException e){
368368
logger.error("Unable to find compiled data file in raw resource",e);
369369
}
370370
return null;

0 commit comments

Comments
 (0)