java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference

Stack Overflow | karthiventure | 8 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

    How to reset Spinner value to "Select by somthing" based on Radio Button checked

    Stack Overflow | 8 months ago | karthiventure
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference

      at com.example.vari.new_varri.Scrap_Report$1.onCheckedChanged()
    2. com.example.vari
      Scrap_Report$1.onCheckedChanged
      1. com.example.vari.new_varri.Scrap_Report$1.onCheckedChanged(Scrap_Report.java:142)
      1 frame
    3. Android Platform
      RadioGroup.setCheckedId
      1. android.widget.RadioGroup.setCheckedId(RadioGroup.java:173)
      1 frame