Commit 62684861 authored by w30234's avatar w30234 Committed by Android Git Automerger
Browse files

am a08cffe7: STK: Check that main menu exists before retrieval

* commit 'a08cffe7':
  STK: Check that main menu exists before retrieval
parents ede6aba8 a08cffe7
......@@ -432,7 +432,7 @@ public class StkAppService extends Service implements Runnable {
*/
Menu getMainMenu(int slotId) {
CatLog.d(LOG_TAG, "StkAppService, getMainMenu, sim id: " + slotId);
if (slotId >=0 && slotId < mSimCount) {
if (slotId >=0 && slotId < mSimCount && (mStkContext[slotId].mMainCmd != null)) {
return mStkContext[slotId].mMainCmd.getMenu();
} else {
return null;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment