Skip to content

Commit 3fbf785

Browse files
dcaspifacebook-github-bot
authored andcommitted
Better handling exception in loadScript()
Differential Revision: D6856807 fbshipit-source-id: 36c527ee00eef56a5912ad6e4233d6cd61cb5170
1 parent e756251 commit 3fbf785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactAndroid/src/main/java/com/facebook/react/bridge/FallbackJSBundleLoader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public String loadScript(CatalystInstanceImpl instance) {
5757
try {
5858
return getDelegateLoader().loadScript(instance);
5959
} catch (Exception e) {
60-
if (!e.getMessage().startsWith(RECOVERABLE)) {
60+
if (e.getMessage() == null || !e.getMessage().startsWith(RECOVERABLE)) {
6161
throw e;
6262
}
6363

0 commit comments

Comments
 (0)