java.lang.RuntimeException: An error occurred while executing doInBackground()

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

    error while executing do in background android

    Stack Overflow | 6 months ago | Javaiskillingme
    java.lang.RuntimeException: An error occurred while executing doInBackground()

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference

      at com.example.gary.natureallv2.CameraPicActivity$Encode_image.doInBackground()
    2. com.example.gary
      CameraPicActivity$Encode_image.doInBackground
      1. com.example.gary.natureallv2.CameraPicActivity$Encode_image.doInBackground(CameraPicActivity.java:217)
      2. com.example.gary.natureallv2.CameraPicActivity$Encode_image.doInBackground(CameraPicActivity.java:214)
      2 frames