java.lang.IllegalStateException: Could not execute method for android:onClick

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Struggling with search google map places

    Stack Overflow | 5 months ago | Stanley Tutu Dinala
    java.lang.IllegalStateException: Could not execute method for android:onClick

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke interface method 'java.lang.Object java.util.List.get(int)' on a null object reference

      at amahlo.gridview.Agriculture.onSearch()
    2. amahlo.gridview
      Agriculture.onSearch
      1. amahlo.gridview.Agriculture.onSearch(Agriculture.java:45)
      1 frame
    3. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    4. Android v7
      AppCompatViewInflater$DeclaredOnClickListener.onClick
      1. android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:5210)
      2. android.view.View$PerformClick.run(View.java:20976)
      3. android.os.Handler.handleCallback(Handler.java:739)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:145)
      6. android.app.ActivityThread.main(ActivityThread.java:6145)
      6 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$MethodAndArgsCaller.run
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
      1 frame