mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 22:37:15 +00:00
Fixed potetial NPE rendering live races on mobile
This commit is contained in:
1 parent
fc4d26a197
commit
e34e17f912
1 file changed
+5
-3
+5
-3
@@ -32,10 +32,12 @@ public class RegattaLiveRaces extends Composite implements RefreshableWidget<Sor
|
||||
|
||||
@Override
|
||||
public void setData(SortedSetResult<LiveRaceDTO> data) {
|
||||
setVisible(!data.isEmpty());
|
||||
setVisible(data != null && !data.isEmpty());
|
||||
mobileSection.clearContent();
|
||||
for (LiveRaceDTO liveRace : data.getValues()) {
|
||||
mobileSection.addContent(new RegattaStatusRace(liveRace));
|
||||
if (data != null) {
|
||||
for (LiveRaceDTO liveRace : data.getValues()) {
|
||||
mobileSection.addContent(new RegattaStatusRace(liveRace));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user