GrenderG / GrenderG/Toasty

Null object on setBackground

Open
#147 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.6k
Forks
803
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.