java.lang.RuntimeException: Unable to start activity ComponentInfo{vocabulary3000.tobiastiebes.de.vocabulary3000/vocabulary3000.tobiastiebes.de.vocabulary3000.MainMenu}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference

Stack Overflow | DerEntwickler | 4 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Java (Android studio) What are doing there?

    Stack Overflow | 4 months ago | DerEntwickler
    java.lang.RuntimeException: Unable to start activity ComponentInfo{vocabulary3000.tobiastiebes.de.vocabulary3000/vocabulary3000.tobiastiebes.de.vocabulary3000.MainMenu}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.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.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference

      at vocabulary3000.tobiastiebes.de.vocabulary3000.MainMenu.onCreate()
    2. vocabulary3000.tobiastiebes.de
      MainMenu.onCreate
      1. vocabulary3000.tobiastiebes.de.vocabulary3000.MainMenu.onCreate(MainMenu.java:79)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6285)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2524)
      5. android.app.ActivityThread.access$900(ActivityThread.java:154)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1391)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:234)
      9. android.app.ActivityThread.main(ActivityThread.java:5526)
      9 frames