java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.view.ViewGroup.getContext()' on a null object reference at android.support.design.widget.Snackbar.<init>(Snackbar.java:183)

GitHub | galadril | 4 months ago
  1. 0

    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.view.ViewGroup.getContext()' on a null object reference

    GitHub | 4 months ago | galadril
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.view.ViewGroup.getContext()' on a null object reference at android.support.design.widget.Snackbar.<init>(Snackbar.java:183)
  2. 0

    Android Snackbar NullPointerException in Fragment

    Stack Overflow | 2 years ago | Murat Erdogan
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.view.ViewGroup.getContext()' on a null object reference
  3. 0

    Upvoted a post, received a crash!

    GitHub | 1 year ago | russjr08
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.view.ViewGroup.getContext()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 291#151607833

    GitHub | 1 year ago | l3d00m
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.view.ViewGroup.getContext()' on a null object reference
  6. 0

    Hiding the comment action bar after voting can cause a crash

    GitHub | 1 year ago | SlideAutoreport
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.view.ViewGroup.getContext()' on a null object reference
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    Attempt to invoke virtual method 'android.content.Context android.view.ViewGroup.getContext()' on a null object reference at android.support.design.widget.Snackbar.<init>(Snackbar.java:183)

    at android.support.design.widget.Snackbar.make()
  2. android.support.design
    Snackbar.make
    1. android.support.design.widget.Snackbar.make(Snackbar.java:215)
    1 frame
  3. nl.hnogames.domoticz
    MainActivity$5.onProfileChanged
    1. nl.hnogames.domoticz.MainActivity$5.onProfileChanged(MainActivity.java:595)
    1 frame
  4. com.mikepenz.materialdrawer
    DrawerBuilder$5.onClick
    1. com.mikepenz.materialdrawer.AccountHeaderBuilder$7.onItemClick(AccountHeaderBuilder.java:1422)
    2. com.mikepenz.materialdrawer.DrawerBuilder$5.onClick(DrawerBuilder.java:1711)
    3. com.mikepenz.materialdrawer.DrawerBuilder$5.onClick(DrawerBuilder.java:1685)
    3 frames
  5. com.mikepenz.fastadapter
    FastAdapter$1.onClick
    1. com.mikepenz.fastadapter.FastAdapter$1.onClick(FastAdapter.java:422)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:5697)
    2. android.view.View$PerformClick.run(View.java:22526)
    3. android.os.Handler.handleCallback(Handler.java:739)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:158)
    6. android.app.ActivityThread.main(ActivityThread.java:7229)
    6 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    2 frames