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

Commit 54eccc51 authored by Attila's avatar Attila
Browse files

b/5594154 Fix NPE in SocialWidgetProvider

Change-Id: Ibc6c3c26f7bdd0f5a4eb3adf0bf5597a35a0fa05
parent d7c04071
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -209,6 +209,9 @@ public class SocialWidgetProvider extends AppWidgetProvider {
            // TODO: Rotate between all the stream items?
            StreamItemEntry streamItem = streamItems.get(0);
            CharSequence status = HtmlUtils.fromHtml(context, streamItem.getText());
            if (status == null) {
              status = "";
            }
            if (status.length() <= SHORT_SNIPPET_LENGTH) {
                sb.append("\n");
            } else {