From e4fbcb6e6e2f9cb917fbf8a7ce003bf515ce5446 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 13 Jan 2016 13:49:30 +0100 Subject: [client] also check if the return list of location is empty --- .../src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java index 7749cfeb..79931bb8 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java @@ -54,7 +54,7 @@ public class LectureWizard extends Wizard implements UiFeedback { addPage(new LectureImageListPage(this, state)); addPage(new LectureOptionsPage(this, state)); addPage(new LectureCustomPermissionPage(this, state)); - if (MetaDataCache.getLocations() != null) + if (MetaDataCache.getLocations() != null && !MetaDataCache.getLocations().isEmpty()) addPage(new LectureLocationSelectionPage(this, state)); } -- cgit v1.2.3-55-g7522