diff options
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/LectureWizard.java | 8 |
1 files changed, 3 insertions, 5 deletions
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 f774fb2a..7749cfeb 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 @@ -21,6 +21,7 @@ import org.openslx.dozmod.state.LectureWizardState; import org.openslx.dozmod.thrift.Session; import org.openslx.dozmod.thrift.ThriftActions; import org.openslx.dozmod.thrift.cache.LectureCache; +import org.openslx.dozmod.thrift.cache.MetaDataCache; @SuppressWarnings("serial") public class LectureWizard extends Wizard implements UiFeedback { @@ -53,7 +54,8 @@ public class LectureWizard extends Wizard implements UiFeedback { addPage(new LectureImageListPage(this, state)); addPage(new LectureOptionsPage(this, state)); addPage(new LectureCustomPermissionPage(this, state)); - addPage(new LectureLocationSelectionPage(this, state)); + if (MetaDataCache.getLocations() != null) + addPage(new LectureLocationSelectionPage(this, state)); } @Override @@ -128,10 +130,6 @@ public class LectureWizard extends Wizard implements UiFeedback { LOGGER.error("No start date set in state!"); return false; } - if (state.locations == null) { - LOGGER.error("No locations set in state!"); - return false; - } return true; } |