X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fro%2Fieval%2Ffonbot%2FLocalBroadcastReceiver.java;h=88cf462b776d93cc0bf3e6f0d45d3fbb924b7c30;hb=a97d31fb5c1bc1725079b5329168b22db3cf9cf3;hp=6605e3de5bb2d58beb4a6d70170cedcc5e47e0f8;hpb=957f71184c0e535794763fc73102fe3289cf47ed;p=fonbot.git diff --git a/src/ro/ieval/fonbot/LocalBroadcastReceiver.java b/src/ro/ieval/fonbot/LocalBroadcastReceiver.java index 6605e3d..88cf462 100644 --- a/src/ro/ieval/fonbot/LocalBroadcastReceiver.java +++ b/src/ro/ieval/fonbot/LocalBroadcastReceiver.java @@ -38,12 +38,12 @@ public final class LocalBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(final @Nullable Context context, final @Nullable Intent intent) { - if(intent==null) + if(context==null || intent==null) return; final String action=intent.getAction(); if(action.equals(LocalBroadcastReceiver.ACTION_POLL_ALARM)) - new PollServerAsyncTask().execute(); + new PollServerAsyncTask(context).execute(); } }