Prevent crash

pull/156/head
M66B 6 years ago
parent 71b50a1c6f
commit a0b343aa62

@ -890,7 +890,7 @@ public class Helper {
} }
} }
if (state.roaming && rlah) if (state.roaming != null && state.roaming && rlah)
try { try {
TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
if (tm != null) { if (tm != null) {

Loading…
Cancel
Save