java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Context.checkPermission(java.lang.String, int, int)' on a null object reference

Stack Overflow | Stackingcoder | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Can't ask permission at runtime (Android)

    Stack Overflow | 7 months ago | Stackingcoder
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Context.checkPermission(java.lang.String, int, int)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'int android.content.Context.checkPermission(java.lang.String, int, int)' on a null object reference

      at com.doppler.stackingcoder.pechhulp.PechhulpActivity.makeCall()
    2. com.doppler.stackingcoder
      PechhulpActivity.makeCall
      1. com.doppler.stackingcoder.pechhulp.PechhulpActivity.makeCall(PechhulpActivity.java:226)
      1 frame