joshfriend/GoFCCYourself

Crash when called by restricted/blocked number

joshfriend opened this issue · 0 comments

java.lang.IllegalStateException: PhoneNumberUtils.formatN….getDefault().country
      ) must not be null
        at com.fueledbycaffeine.gofccyourself.service.StupidCallScreeningServiceKt.getFormattedPhoneNumber(StupidCallScreeningService.kt:113)
        at com.fueledbycaffeine.gofccyourself.service.StupidCallScreeningServiceKt.access$getFormattedPhoneNumber$p(StupidCallScreeningService.kt:1)
        at com.fueledbycaffeine.gofccyourself.service.StupidCallScreeningService.buildResponse(StupidCallScreeningService.kt:71)
        at com.fueledbycaffeine.gofccyourself.service.StupidCallScreeningService.onScreenCall(StupidCallScreeningService.kt:46)
        at android.telecom.CallScreeningService$1.handleMessage(CallScreeningService.java:111)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7478)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:549)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941)