mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
Add null protection for announcements
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user