mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +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 {
|
public String getCurrentAnnouncements(boolean forceLast) throws ParseException {
|
||||||
announcements = service.getAnnouncements();
|
announcements = service.getAnnouncements();
|
||||||
|
if (announcements == null)
|
||||||
|
return null;
|
||||||
boolean hasUnread = false;
|
boolean hasUnread = false;
|
||||||
StringBuilder sb = new StringBuilder("<html>");
|
StringBuilder sb = new StringBuilder("<html>");
|
||||||
for (int i = 0; i < announcements.size(); i++) {
|
for (int i = 0; i < announcements.size(); i++) {
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user