Skip to content

Commit 95ac296

Browse files
committed
Fix check on hasPhoneAccount on Android
1 parent 0295435 commit 95ac296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ private Boolean hasPermissions() {
478478
}
479479

480480
private static boolean hasPhoneAccount() {
481-
return isConnectionServiceAvailable() && telecomManager.getPhoneAccount(handle).isEnabled();
481+
return isConnectionServiceAvailable() && telecomManager && telecomManager.getPhoneAccount(handle).isEnabled();
482482
}
483483

484484
private void registerReceiver() {

0 commit comments

Comments
 (0)