From dabce43e42b98bab01f3d6aebfb926854011ba31 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 27 Jun 2018 11:24:49 +0200 Subject: [client] Fix stuff FindBugs complained about --- .../openslx/dozmod/gui/window/layout/GenericNoticeWindowLayout.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/GenericNoticeWindowLayout.java') 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) { -- cgit v1.2.3-55-g7522