Better handling exception in loadScript()

Differential Revision: D6856807

fbshipit-source-id: 36c527ee00eef56a5912ad6e4233d6cd61cb5170
This commit is contained in:
Dan Caspi 2018-01-31 05:15:19 -08:00 committed by Facebook Github Bot
parent e756251413
commit 3fbf7856d9
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public final class FallbackJSBundleLoader extends JSBundleLoader {
try {
return getDelegateLoader().loadScript(instance);
} catch (Exception e) {
if (!e.getMessage().startsWith(RECOVERABLE)) {
if (e.getMessage() == null || !e.getMessage().startsWith(RECOVERABLE)) {
throw e;
}