java.lang.RuntimeException: Unable to start activity ComponentInfo{com.lagistos.memalela/com.lagistos.memalela.MainTeacher}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference

Stack Overflow | Ariel Gal | 5 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.lang.NullPointerException ImageView OnClickListener

    Stack Overflow | 5 months ago | Ariel Gal
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.lagistos.memalela/com.lagistos.memalela.MainTeacher}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.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.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference

      at com.lagistos.memalela.MainTeacher.onClickInitialize()
    2. com.lagistos.memalela
      MainTeacher.onCreate
      1. com.lagistos.memalela.MainTeacher.onClickInitialize(MainTeacher.java:164)
      2. com.lagistos.memalela.MainTeacher.onCreate(MainTeacher.java:58)
      2 frames
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6178)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1115)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2590)
      3 frames