diff options
| author | Simon Rettberg | 2016-01-26 15:17:27 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2016-01-26 15:17:27 +0100 |
| commit | fbbf386950d4679d3d5e3fe0b510eff985599d6b (patch) | |
| tree | 4d60de5adc659f3816e1c5e6861a28dc328c7ad0 | |
| parent | [client] fix text cutoff on location tree's root (diff) | |
| download | tutor-module-fbbf386950d4679d3d5e3fe0b510eff985599d6b.tar.gz tutor-module-fbbf386950d4679d3d5e3fe0b510eff985599d6b.tar.xz tutor-module-fbbf386950d4679d3d5e3fe0b510eff985599d6b.zip | |
[client] Fix NPE
| -rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureLocationSelectionPage.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureLocationSelectionPage.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureLocationSelectionPage.java index 7d25eb59..31c2782c 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureLocationSelectionPage.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureLocationSelectionPage.java @@ -29,7 +29,7 @@ public class LectureLocationSelectionPage extends LectureLocationSelectionPageLa private boolean updateState() { List<Integer> locations = locationSelector.getSelectedLocationsAsIds(); boolean locationExclusive = locationSelector.getOnlyInSelection(); - if (locations.size() > Session.getSatelliteConfig().maxLocationsPerLecture) { + if (locations != null && locations.size() > Session.getSatelliteConfig().maxLocationsPerLecture) { setErrorMessage("Zu viele Räume/Orte ausgewählt"); locationSelector.setSelectedLocationsAsIds(locations); locationSelector.collapseFullySelectedNodes(); |
