Make E4 more robust
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui / src / org / argeo / eclipse / ui / dialogs / LightweightDialog.java
index e816ec718dbb4fd30ad81e44af83d0fbc523d616..6d45e8cf21bc35ecae4be693ff993efdf807a4bc 100644 (file)
@@ -224,7 +224,7 @@ public class LightweightDialog {
 
        public void setTitle(String title) {
                this.title = title;
-               if (getForegoundShell() != null)
+               if (title != null && getForegoundShell() != null)
                        getForegoundShell().setText(title);
        }