You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
I'm using 1.13.1-beta for android with React Native 0.27.0. It's a full RN app and I'm calling CodePush.sync() in my componentDidMount method.
The app is crashing right after trying to load the new bundle.
Also, when I launch the app again, the new bundle is loaded and everything is fine.
You can find the logs below:
06-30 21:34:49.061 17819 17889 I ReactNativeJS: [CodePush] Checking for update. 06-30 21:34:49.801 17819 17889 I ReactNativeJS: [CodePush] Downloading package. 06-30 21:34:51.061 17819 17889 I ReactNativeJS: [CodePush] Installing update. 06-30 21:34:51.351 17819 17889 I ReactNativeJS: [CodePush] Restarting app 06-30 21:34:51.371 17819 17890 D ReactNative: [CodePush] Loading JS bundle from "/data/user/0/com.deliverycom/files/CodePush/2dc725964774668d1945036011d552f653639f87ff846d19580d42464cb0d5a0/CodePush/index.android.bundle"
06-30 21:34:51.501 17819 17819 E AndroidRuntime: FATAL EXCEPTION: main 06-30 21:34:51.501 17819 17819 E AndroidRuntime: Process: com.deliverycom, PID: 17819 06-30 21:34:51.501 17819 17819 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.app.Activity.getIntent()' on a null object reference 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at com.microsoft.codepush.react.CodePushNativeModule.loadBundleLegacy(CodePushNativeModule.java:84) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at com.microsoft.codepush.react.CodePushNativeModule.access$100(CodePushNativeModule.java:34) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at com.microsoft.codepush.react.CodePushNativeModule$1.run(CodePushNativeModule.java:147) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at android.os.Looper.loop(Looper.java:158) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7229) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Hi guys,
I'm using 1.13.1-beta for android with React Native 0.27.0. It's a full RN app and I'm calling CodePush.sync() in my componentDidMount method.
The app is crashing right after trying to load the new bundle.
Also, when I launch the app again, the new bundle is loaded and everything is fine.
You can find the logs below:
06-30 21:34:49.061 17819 17889 I ReactNativeJS: [CodePush] Checking for update. 06-30 21:34:49.801 17819 17889 I ReactNativeJS: [CodePush] Downloading package. 06-30 21:34:51.061 17819 17889 I ReactNativeJS: [CodePush] Installing update. 06-30 21:34:51.351 17819 17889 I ReactNativeJS: [CodePush] Restarting app 06-30 21:34:51.371 17819 17890 D ReactNative: [CodePush] Loading JS bundle from "/data/user/0/com.deliverycom/files/CodePush/2dc725964774668d1945036011d552f653639f87ff846d19580d42464cb0d5a0/CodePush/index.android.bundle"06-30 21:34:51.501 17819 17819 E AndroidRuntime: FATAL EXCEPTION: main 06-30 21:34:51.501 17819 17819 E AndroidRuntime: Process: com.deliverycom, PID: 17819 06-30 21:34:51.501 17819 17819 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.app.Activity.getIntent()' on a null object reference 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at com.microsoft.codepush.react.CodePushNativeModule.loadBundleLegacy(CodePushNativeModule.java:84) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at com.microsoft.codepush.react.CodePushNativeModule.access$100(CodePushNativeModule.java:34) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at com.microsoft.codepush.react.CodePushNativeModule$1.run(CodePushNativeModule.java:147) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at android.os.Looper.loop(Looper.java:158) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7229) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 06-30 21:34:51.501 17819 17819 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)Any idea what's going on?