summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/GenericNoticeWindowLayout.java
diff options
context:
space:
mode:
authorSimon Rettberg2018-06-27 11:24:49 +0200
committerSimon Rettberg2018-06-27 11:24:49 +0200
commitdabce43e42b98bab01f3d6aebfb926854011ba31 (patch)
tree4d099668e20b272603f9ee6a249bbd4216b8e13b /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/GenericNoticeWindowLayout.java
parent[client] Fix string compare (diff)
downloadtutor-module-dabce43e42b98bab01f3d6aebfb926854011ba31.tar.gz
tutor-module-dabce43e42b98bab01f3d6aebfb926854011ba31.tar.xz
tutor-module-dabce43e42b98bab01f3d6aebfb926854011ba31.zip
[client] Fix stuff FindBugs complained about
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/GenericNoticeWindowLayout.java')
-rwxr-xr-xdozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/GenericNoticeWindowLayout.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/GenericNoticeWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/GenericNoticeWindowLayout.java
index 56713dd5..022950d1 100755
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/GenericNoticeWindowLayout.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/GenericNoticeWindowLayout.java
@@ -82,7 +82,9 @@ public abstract class GenericNoticeWindowLayout extends JDialog {
grid.finish(false);
pack();
- Gui.centerShellOverShell(modalParent, this);
+ if (modalParent != null) {
+ Gui.centerShellOverShell(modalParent, this);
+ }
}
public void setNoticeText(String text) {