Permalink
Browse files

Better handling exception in loadScript()

Differential Revision: D6856807

fbshipit-source-id: 36c527ee00eef56a5912ad6e4233d6cd61cb5170
  • Loading branch information...
Dan Caspi authored and facebook-github-bot committed Jan 31, 2018
1 parent e756251 commit 3fbf7856d9acb0909357d6b315388471a6b5a69c
@@ -57,7 +57,7 @@ public String loadScript(CatalystInstanceImpl instance) {
try {
return getDelegateLoader().loadScript(instance);
} catch (Exception e) {
if (!e.getMessage().startsWith(RECOVERABLE)) {
if (e.getMessage() == null || !e.getMessage().startsWith(RECOVERABLE)) {
throw e;
}

0 comments on commit 3fbf785

Please sign in to comment.