java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bbk.app.main/com.bbk.hh.app.mine.MineActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference

GitHub | DHGHH | 9 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

    GitHub comment 255#238019214

    GitHub | 9 months ago | DHGHH
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bbk.app.main/com.bbk.hh.app.mine.MineActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void android.widget.TextView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference

      at com.bbk.hh.app.mine.MineActivity.onCreate()
    2. com.bbk.hh
      MineActivity.onCreate
      1. com.bbk.hh.app.mine.MineActivity.onCreate(MineActivity.java:29)
      1 frame
    3. Android Platform
      Instrumentation.callActivityOnCreate
      1. android.app.Activity.performCreate(Activity.java:5933)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
      2 frames