java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.ViewGroup.findViewById(int)' on a null object reference

GitHub | khaykov | 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

    People Management: Removing username before it's validated leads to crash.

    GitHub | 7 months ago | khaykov
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.ViewGroup.findViewById(int)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'android.view.View android.view.ViewGroup.findViewById(int)' on a null object reference

      at org.wordpress.android.ui.people.PeopleInviteFragment.styleButton()
    2. org.wordpress.android
      PeopleUtils$11.onResponse
      1. org.wordpress.android.ui.people.PeopleInviteFragment.styleButton(PeopleInviteFragment.java:354)
      2. org.wordpress.android.ui.people.PeopleInviteFragment.access$800(PeopleInviteFragment.java:38)
      3. org.wordpress.android.ui.people.PeopleInviteFragment$8.onUsernameValidation(PeopleInviteFragment.java:321)
      4. org.wordpress.android.ui.people.utils.PeopleUtils$11.onResponse(PeopleUtils.java:289)
      5. org.wordpress.android.ui.people.utils.PeopleUtils$11.onResponse(PeopleUtils.java:267)
      5 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:135)
      4. android.app.ActivityThread.main(ActivityThread.java:5221)
      4 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      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:899)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
      2 frames