OSDN Git Service

Don't send terminal response without cmd details.
authorJohn Wang <johnwang@google.com>
Fri, 20 Jul 2012 01:08:55 +0000 (18:08 -0700)
committerJohn Wang <johnwang@google.com>
Fri, 20 Jul 2012 22:41:40 +0000 (15:41 -0700)
bug:6481578
Change-Id: Ie9f6e33c49307ddd884015a400f90e5477cc551e

telephony/java/com/android/internal/telephony/cat/CatService.java

index 2b37072..17574ce 100644 (file)
@@ -169,8 +169,11 @@ public class CatService extends Handler implements AppInterface {
             } catch (ClassCastException e) {
                 // for error handling : cast exception
                 CatLog.d(this, "Fail to parse proactive command");
-                sendTerminalResponse(mCurrntCmd.mCmdDet, ResultCode.CMD_DATA_NOT_UNDERSTOOD,
+                // Don't send Terminal Resp if command detail is not available
+                if (mCurrntCmd != null) {
+                    sendTerminalResponse(mCurrntCmd.mCmdDet, ResultCode.CMD_DATA_NOT_UNDERSTOOD,
                                      false, 0x00, null);
+                }
                 break;
             }
             if (cmdParams != null) {