mirror of
https://github.com/status-im/react-native.git
synced 2025-02-27 00:20:31 +00:00
Better handling exception in loadScript()
Differential Revision: D6856807 fbshipit-source-id: 36c527ee00eef56a5912ad6e4233d6cd61cb5170
This commit is contained in:
parent
e756251413
commit
3fbf7856d9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user