Bug 1280446 - Follow-up to fix another possible crash; r=me
authorJim Chen <nchen@mozilla.com>
Mon, 11 Jul 2016 17:16:57 -0400
changeset 304571 749004283a017f8a3e7962a89b85b5235b57a8da
parent 304570 bd228cbbe31ef791e71aa695a3370b2e2ad405de
child 304572 f7af9f4cf7ed73592380987efeb4d43ea1e9555d
push id30432
push usercbook@mozilla.com
push dateTue, 12 Jul 2016 08:58:43 +0000
treeherdermozilla-central@aac8ff1024c5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1280446
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1280446 - Follow-up to fix another possible crash; r=me
mobile/android/base/java/org/mozilla/gecko/push/PushService.java
--- a/mobile/android/base/java/org/mozilla/gecko/push/PushService.java
+++ b/mobile/android/base/java/org/mozilla/gecko/push/PushService.java
@@ -71,17 +71,17 @@ public class PushService implements Bund
             onCreate(context);
         }
         return sInstance;
     }
 
     @ReflectionTarget
     public static synchronized void onCreate(Context context) {
         if (sInstance != null) {
-            throw new IllegalStateException("PushService already created!");
+            return;
         }
         sInstance = new PushService(context);
 
         sInstance.registerGeckoEventListener();
         sInstance.onStartup();
     }
 
     protected final PushManager pushManager;