This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
android/app/src/main/java/com/microsoft/codepush/react Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 23
23
import android .content .pm .PackageInfo ;
24
24
import android .content .pm .PackageManager ;
25
25
import android .os .AsyncTask ;
26
+ import android .util .Log ;
26
27
27
28
import org .json .JSONException ;
28
29
import org .json .JSONObject ;
@@ -49,6 +50,7 @@ public class CodePush {
49
50
private final String PENDING_UPDATE_WAS_INITIALIZED_KEY = "wasInitialized" ;
50
51
private final String ASSETS_BUNDLE_PREFIX = "assets://" ;
51
52
private final String CODE_PUSH_PREFERENCES = "CodePush" ;
53
+ private final String CODE_PUSH_TAG = "CodePush" ;
52
54
private final String DOWNLOAD_PROGRESS_EVENT_NAME = "CodePushDownloadProgress" ;
53
55
private final String RESOURCES_BUNDLE = "resources.arsc" ;
54
56
@@ -217,8 +219,9 @@ private JSONObject getPendingUpdate() {
217
219
return pendingUpdate ;
218
220
} catch (JSONException e ) {
219
221
// Should not happen.
220
- throw new CodePushUnknownException ( "Unable to parse pending update metadata " +
222
+ Log . e ( CODE_PUSH_TAG , "Unable to parse pending update metadata " +
221
223
pendingUpdateString + " stored in SharedPreferences" , e );
224
+ return null ;
222
225
}
223
226
}
224
227
You can’t perform that action at this time.
0 commit comments