Prevent javacrash when TELEPHONY_SERVICE is not found
The API context.getSystemService can return NULL
A Javacrash can happend when trying to obtain the TELEPHONY_SERVICE
and getting null instead.
The patch warn about the value of the instance of the service returned.
It also log and prevent its use in function startListenForPhoneState and
If the TELEPHONY_SERVICE is not available, the internal variables wont
Signed-off-by: franck Lenormand <firstname.lastname@example.org>
Signed-off-by: Zhiquan Liu <email@example.com>
1 file changed