summaryrefslogtreecommitdiff
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/stk/StkAppService.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java
index 305210b..4140d15 100644
--- a/src/com/android/stk/StkAppService.java
+++ b/src/com/android/stk/StkAppService.java
@@ -564,7 +564,10 @@ public class StkAppService extends Service implements Runnable {
((CatCmdMessage)msg.obj).getCmdType()!= null) {
CatLog.d(LOG_TAG, "cmdName[" + ((CatCmdMessage)msg.obj).getCmdType().name() + "]");
}
- if (slotId > mStkContext.length || mStkContext[slotId] == null) return;
+ if (slotId >= mStkContext.length || mStkContext[slotId] == null) {
+ CatLog.d(LOG_TAG, "invalid slotId " + slotId);
+ return;
+ }
mStkContext[slotId].mOpCode = opcode;
switch (opcode) {