java.lang.NullPointerException: Attempt to invoke interface method 'void com.example.deepak.meme_creator.TopFragment$TopSectionListener.createMeme(java.lang.String, java.lang.String)' on a null object reference

Stack Overflow | deepak kumar | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    My app crashes when Button is clicked

    Stack Overflow | 5 months ago | deepak kumar
    java.lang.NullPointerException: Attempt to invoke interface method 'void com.example.deepak.meme_creator.TopFragment$TopSectionListener.createMeme(java.lang.String, java.lang.String)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke interface method 'void com.example.deepak.meme_creator.TopFragment$TopSectionListener.createMeme(java.lang.String, java.lang.String)' on a null object reference

      at com.example.deepak.meme_creator.TopFragment.button_clicked()
    2. com.example.deepak
      TopFragment$1.onClick
      1. com.example.deepak.meme_creator.TopFragment.button_clicked(TopFragment.java:65)
      2. com.example.deepak.meme_creator.TopFragment$1.onClick(TopFragment.java:54)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:4780)
      2. android.view.View$PerformClick.run(View.java:19866)
      3. android.os.Handler.handleCallback(Handler.java:739)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:135)
      6. android.app.ActivityThread.main(ActivityThread.java:5254)
      6 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames