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

GitHub | xdtianyu | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Caused "java.lang.NullPointerException"

    GitHub | 2 years ago | xdtianyu
    java.lang.RuntimeException: An error occured while executing doInBackground()

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.io.OutputStream java.lang.Process.getOutputStream()' on a null object reference

      at org.xdty.selinuxmodify.MainActivity.exec()
    2. org.xdty.selinuxmodify
      MainActivity$WaitTask.doInBackground
      1. org.xdty.selinuxmodify.MainActivity.exec(MainActivity.java:101)
      2. org.xdty.selinuxmodify.MainActivity.getEnforce(MainActivity.java:78)
      3. org.xdty.selinuxmodify.MainActivity.access$400(MainActivity.java:17)
      4. org.xdty.selinuxmodify.MainActivity$WaitTask.doInBackground(MainActivity.java:123)
      5. org.xdty.selinuxmodify.MainActivity$WaitTask.doInBackground(MainActivity.java:110)
      5 frames
    3. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:288)
      1 frame
    4. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      1 frame
    5. Android Platform
      AsyncTask$SerialExecutor$1.run
      1. android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames