We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 359ab98 commit d37ee85Copy full SHA for d37ee85
android/app/src/main/java/com/microsoft/codepush/react/CodePush.java
@@ -184,7 +184,7 @@ void initializeUpdateAfterRestart() {
184
JSONObject pendingUpdate = mSettingsManager.getPendingUpdate();
185
if (pendingUpdate != null) {
186
JSONObject packageMetadata = this.mUpdateManager.getCurrentPackage();
187
- if (!isPackageBundleLatest(packageMetadata) && hasBinaryVersionChanged(packageMetadata)) {
+ if (packageMetadata == null || !isPackageBundleLatest(packageMetadata) && hasBinaryVersionChanged(packageMetadata)) {
188
CodePushUtils.log("Skipping initializeUpdateAfterRestart(), binary version is newer");
189
return;
190
}
0 commit comments