Add null protection for announcements

This commit is contained in:
bancika
2020-03-22 12:14:01 +01:00
parent bff1b670d5
commit 8f0c0adcb4
3 changed files with 3 additions and 1 deletions
@@ -59,6 +59,8 @@ public class AnnouncementProvider {
public String getCurrentAnnouncements(boolean forceLast) throws ParseException {
announcements = service.getAnnouncements();
if (announcements == null)
return null;
boolean hasUnread = false;
StringBuilder sb = new StringBuilder("<html>");
for (int i = 0; i < announcements.size(); i++) {
Binary file not shown.
Binary file not shown.