mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Add null protection for announcements
This commit is contained in:
@@ -58,7 +58,9 @@ public class AnnouncementProvider {
|
||||
}
|
||||
|
||||
public String getCurrentAnnouncements(boolean forceLast) throws ParseException {
|
||||
announcements = service.getAnnouncements();
|
||||
announcements = service.getAnnouncements();
|
||||
if (announcements == null)
|
||||
return null;
|
||||
boolean hasUnread = false;
|
||||
StringBuilder sb = new StringBuilder("<html>");
|
||||
for (int i = 0; i < announcements.size(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user