mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-13 07:44:11 +01:00
fix NPE if status is null
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
d3c46e72f7
commit
0dc42a1b1e
@ -56,7 +56,7 @@ public class StatusDrawable extends Drawable {
|
|||||||
if ("dnd".equals(status)) {
|
if ("dnd".equals(status)) {
|
||||||
icon = R.drawable.ic_user_status_dnd;
|
icon = R.drawable.ic_user_status_dnd;
|
||||||
this.context = context;
|
this.context = context;
|
||||||
} else if (TextUtils.isEmpty(statusIcon)) {
|
} else if (TextUtils.isEmpty(statusIcon) && status != null) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case "online":
|
case "online":
|
||||||
icon = R.drawable.online_status;
|
icon = R.drawable.online_status;
|
||||||
|
Loading…
Reference in New Issue
Block a user