Skip to content

Commit e514c14

Browse files
committed
fix: prevent NullPointerException in restart by providing default assets bundle URL
1 parent 54c2c7a commit e514c14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/src/main/java/cn/reactnative/modules/update/UpdateModuleImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public void run() {
150150
}
151151

152152
final Context application = mContext.getApplicationContext();
153-
JSBundleLoader loader = JSBundleLoader.createFileLoader(UpdateContext.getBundleUrl(application));
153+
JSBundleLoader loader = JSBundleLoader.createFileLoader(UpdateContext.getBundleUrl(application, "assets://index.android.bundle"));
154154
try {
155155
ReactInstanceManager instanceManager = updateContext.getCustomReactInstanceManager();
156156

0 commit comments

Comments
 (0)