Skip to content

Commit

Permalink
fix NPE if status is null
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Hibbe <[email protected]>
  • Loading branch information
mahibi committed Feb 25, 2022
1 parent d3c46e7 commit 0dc42a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public StatusDrawable(String status, String statusIcon, float statusSize, int ba
if ("dnd".equals(status)) {
icon = R.drawable.ic_user_status_dnd;
this.context = context;
} else if (TextUtils.isEmpty(statusIcon)) {
} else if (TextUtils.isEmpty(statusIcon) && status != null) {
switch (status) {
case "online":
icon = R.drawable.online_status;
Expand Down

0 comments on commit 0dc42a1

Please sign in to comment.