Skip to content

Commit

Permalink
Better handling exception in loadScript()
Browse files Browse the repository at this point in the history
Differential Revision: D6856807

fbshipit-source-id: 36c527ee00eef56a5912ad6e4233d6cd61cb5170
  • Loading branch information
dcaspi authored and facebook-github-bot committed Jan 31, 2018
1 parent e756251 commit 3fbf785
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3fbf785

Please sign in to comment.