mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 06:17:27 +00:00
Live Races list - Fixed possible NPE if there are no live races
This commit is contained in:
1 parent
893c06cb3e
commit
d4f299c702
1 file changed
+2
-1
+2
-1
@@ -1,6 +1,7 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event.partials.raceListLive;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
||||
import com.google.gwt.dom.client.Style.Display;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
@@ -27,7 +28,7 @@ public class RacesListLive extends Composite implements RefreshableWidget<Sorted
|
||||
|
||||
@Override
|
||||
public void setData(SortedSetResult<LiveRaceDTO> data, long nextUpdate, int updateNo) {
|
||||
this.setListData(data.getValues());
|
||||
this.setListData(data == null ? Collections.<LiveRaceDTO>emptySet() : data.getValues());
|
||||
}
|
||||
|
||||
public void setListData(Collection<LiveRaceDTO> data) {
|
||||
|
||||
Reference in new issue
Block a user