java.lang.NullPointerException: Attempt to invoke virtual method 'org.wordpress.android.models.CommentStatus org.wordpress.android.models.Comment.getStatusEnum()' on a null object reference

GitHub | maxme | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Crash report 5.6-rc-1: NPE in CommentDetailFragment

    GitHub | 8 months ago | maxme
    java.lang.NullPointerException: Attempt to invoke virtual method 'org.wordpress.android.models.CommentStatus org.wordpress.android.models.Comment.getStatusEnum()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'org.wordpress.android.models.CommentStatus org.wordpress.android.models.Comment.getStatusEnum()' on a null object reference

      at org.wordpress.android.ui.comments.CommentDetailFragment$10.onActionResult()
    2. org.wordpress.android
      CommentActions$2.onResponse
      1. org.wordpress.android.ui.comments.CommentDetailFragment$10.onActionResult(CommentDetailFragment.java:826)
      2. org.wordpress.android.ui.comments.CommentActions$2.onResponse(CommentActions.java:167)
      3. org.wordpress.android.ui.comments.CommentActions$2.onResponse(CommentActions.java:163)
      3 frames
    3. com.wordpress.rest
      RestRequest.deliverResponse
      1. com.wordpress.rest.RestRequest.deliverResponse(RestRequest.java:76)
      2. com.wordpress.rest.RestRequest.deliverResponse(RestRequest.java:19)
      2 frames
    4. Android-Volley Library
      ExecutorDelivery$ResponseDeliveryRunnable.run
      1. com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:145)
      4. android.app.ActivityThread.main(ActivityThread.java:5938)
      4 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1389)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1184)
      2 frames