Make custom server work when polling
[fonbot.git] / src / ro / ieval / fonbot / GCMIntentService.java
index de3820874242db746df6a281c2a2079e550997e0..aea7202da4d1c23966685df588e3a193141404f2 100644 (file)
@@ -51,10 +51,13 @@ public class GCMIntentService extends GCMBaseIntentService {
 
        @Override
        protected void onMessage(@Nullable final Context context, @Nullable final Intent intent) {
+               if(context==null)
+                       return;
+
                handler.post(new Runnable(){
                        @Override
                        public void run() {
-                               new PollServerAsyncTask().execute();    
+                               new PollServerAsyncTask(context).execute();     
                        }
                });
        }
This page took 0.010526 seconds and 4 git commands to generate.