Throwing null pointer exception

前端 未结 6 1558
别那么骄傲
别那么骄傲 2021-01-28 00:29

I am doing one application in android for that I need to access com.android.internal.telephony APIs. Now I am able to access those APIs but problem is wherever I call the

6条回答
  •  执笔经年
    2021-01-28 01:18

    Your cm variable has been never initialized before getConnections() call. So, it is null and you get NullPointerException when trying to invoke cm.getActiveFgCall().

提交回复
热议问题