java.lang.NullPointerException

Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web74

  • via Unknown by Unknown author,
  • via GitHub by banobi
    ,
  • Stack trace

    • java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference at android.view.ViewConfiguration.get(ViewConfiguration.java:383) at android.view.View.<init>(View.java:3700) at android.view.View.<init>(View.java:3797) at android.widget.TextView.<init>(TextView.java:690) at android.widget.Button.<init>(Button.java:111) at android.widget.CompoundButton.<init>(CompoundButton.java:85) at android.widget.RadioButton.<init>(RadioButton.java:65) at android.widget.RadioButton.<init>(RadioButton.java:61) at android.widget.RadioButton.<init>(RadioButton.java:57) at android.widget.RadioButton.<init>(RadioButton.java:53) at in.arnavvohra.arry2.Fragments.ChannelDiscussionsFragment$2.onChildAdded(ChannelDiscussionsFragment.java:129) at com.google.android.gms.internal.zzahh.zza(Unknown Source) at com.google.android.gms.internal.zzajh.zzctc(Unknown Source) at com.google.android.gms.internal.zzajk$1.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5930) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one
    brunosatrianibrunosatriani
    13 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Sunny Kumar AdityaSunny Kumar Aditya
    Once,
    2 more bugmates