Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e94c28c authored by Mady Mellor's avatar Mady Mellor
Browse files

Make sure the icon of the sender isn't null

Test: make a test app bubble and look at the logs, note there is no NPE
      (I wasn't seeing an explicit crash, I think because something in
       eng config was hiding it somehow?)
Bug: none

Change-Id: I67a073ebb273e86e2a9fca0f6eaf6d415db5afc5
parent d21c45fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@ public class BubbleViewInfoTask extends AsyncTask<Void, Void, BubbleViewInfoTask
                    bubbleMessage.senderName = sender != null
                            ? sender.getName()
                            : null;
                    bubbleMessage.senderAvatar = sender != null
                    bubbleMessage.senderAvatar = sender != null && sender.getIcon() != null
                            ? sender.getIcon().loadDrawable(context)
                            : null;
                    return bubbleMessage;