mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-04-25 23:38:41 +02:00
adding some null checks
This commit is contained in:
parent
8371663878
commit
ea9c0eb2d1
@ -55,7 +55,7 @@ class CallManager {
|
||||
fun getCallContact(context: Context, callback: (CallContact?) -> Unit) {
|
||||
ensureBackgroundThread {
|
||||
val callContact = CallContact("", "", "")
|
||||
if (call == null || call!!.details == null || call!!.details!!.handle == null) {
|
||||
if (call == null || call?.details == null || call?.details?.handle == null) {
|
||||
callback(callContact)
|
||||
return@ensureBackgroundThread
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user