Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException #41

Open
nevermoresss opened this issue Feb 28, 2017 · 2 comments
Open

NullPointerException #41

nevermoresss opened this issue Feb 28, 2017 · 2 comments

Comments

@nevermoresss
Copy link

Caused by: java.lang.NullPointerException:
Attempt to invoke virtual method 'android.content.Context android.view.ViewGroup.getContext()' on a null object reference
at com.androidadvance.topsnackbar.TSnackbar.<init>(TSnackbar.java:129)
at com.androidadvance.topsnackbar.TSnackbar.make(TSnackbar.java:138)
@manenga
Copy link

manenga commented Aug 24, 2017

I had the same issue @nevermoresss you have to make sure the view you're using in TSnackbar.make(view.findViewById(R.id.confirm_container) is either a CoordinatorLayout or FrameLayout or at least an instance of either of them.

@nevermoresss
Copy link
Author

thx ~ brother @thebachelor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants