diff options
author | Wink Saville <wink@google.com> | 2011-11-01 20:42:54 -0700 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2011-11-01 20:42:54 -0700 |
commit | 046db4bee9c4be21c61cc0d1b46ef46f21e315d8 (patch) | |
tree | c15db23ede41d45a96d6243b5baa4889ba1a060c /src/com/android | |
parent | 885adf34b162728a8c9c04fc16abb6b5fba04395 (diff) | |
download | Stk-046db4bee9c4be21c61cc0d1b46ef46f21e315d8.tar.gz |
Fix NPE in STK application.
Fix NullPointerException while handling "refresh" command.
Bug: 5451736
Change-Id: I10f8382527193d5240715559d97ef6c06ceb1672
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/stk/StkAppService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java index 0ffb9c8..7fd639f 100644 --- a/src/com/android/stk/StkAppService.java +++ b/src/com/android/stk/StkAppService.java @@ -703,6 +703,10 @@ public class StkAppService extends Service implements Runnable { private void launchIdleText() { TextMessage msg = mCurrentCmd.geTextMessage(); + if (msg == null) { + CatLog.d(this, "mCurrentCmd.getTextMessage is NULL"); + return; + } if (msg.text == null) { mNotificationManager.cancel(STK_NOTIFICATION_ID); } else { |