diff options
Diffstat (limited to 'android/src/com/mapswithme/maps/background/AbstractLogBroadcastReceiver.java')
-rw-r--r-- | android/src/com/mapswithme/maps/background/AbstractLogBroadcastReceiver.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/android/src/com/mapswithme/maps/background/AbstractLogBroadcastReceiver.java b/android/src/com/mapswithme/maps/background/AbstractLogBroadcastReceiver.java index 7ed48c9c3c..84fa4842b4 100644 --- a/android/src/com/mapswithme/maps/background/AbstractLogBroadcastReceiver.java +++ b/android/src/com/mapswithme/maps/background/AbstractLogBroadcastReceiver.java @@ -21,7 +21,13 @@ public abstract class AbstractLogBroadcastReceiver extends BroadcastReceiver @Override public final void onReceive(Context context, Intent intent) { - String action = intent != null ? intent.getAction() : null; + if (intent == null) + { + LOGGER.w(getTag(), "An intent with null intent detected"); + return; + } + + String action = intent.getAction(); if (!TextUtils.equals(getAssertAction(), action)) { LOGGER.w(getTag(), "An intent with wrong action detected: " + action); |