Skip to content

Commit

Permalink
MOSYNC-2901: Fixed potential NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasbybro committed Jul 9, 2013
1 parent 19226d4 commit 26a47e3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,11 @@ public void setRootViewUsingTransition(View root, int screenTransitionType, int

@Override
public void onNewIntent(Intent intent) {
String action = intent.getAction();
if (MoSyncNFCService.handleNFCIntent(this, intent)) {
Log.d("@@@ MoSync", "Discovered tag");
}
else if(intent.getAction().equals(LocalNotificationsService.ACTION_NOTIFICATION_RECEIVED))
else if(LocalNotificationsService.ACTION_NOTIFICATION_RECEIVED.equals(action))
{
Log.e("@@MoSync", "onNewIntent: Local Notification received ");
int notificationId = intent.getIntExtra(
Expand Down

0 comments on commit 26a47e3

Please sign in to comment.