X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fro%2Fieval%2Ffonbot%2FGCMIntentService.java;h=aea7202da4d1c23966685df588e3a193141404f2;hb=a97d31fb5c1bc1725079b5329168b22db3cf9cf3;hp=de3820874242db746df6a281c2a2079e550997e0;hpb=957f71184c0e535794763fc73102fe3289cf47ed;p=fonbot.git diff --git a/src/ro/ieval/fonbot/GCMIntentService.java b/src/ro/ieval/fonbot/GCMIntentService.java index de38208..aea7202 100644 --- a/src/ro/ieval/fonbot/GCMIntentService.java +++ b/src/ro/ieval/fonbot/GCMIntentService.java @@ -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(); } }); }