Toasty icon indicating copy to clipboard operation
Toasty copied to clipboard

Null object on setBackground

Open whywilson opened this issue 4 years ago • 1 comments

Always get force close. java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setBackground(android.graphics.drawable.Drawable)' on a null object reference at es.dmoral.toasty.ToastyUtils.setBackground(ToastyUtils.java:49) at es.dmoral.toasty.Toasty.custom(Toasty.java:316) at es.dmoral.toasty.Toasty.error(Toasty.java:242) at es.dmoral.toasty.Toasty.error(Toasty.java:220)

Please help to solve the issues. Thank you for the work.

whywilson avatar Jun 10 '20 16:06 whywilson

hi. if you have a toast_layout.xml file in layouts resource directory, delete or rename it. have a good programming.

alishe79 avatar Dec 11 '20 02:12 alishe79