Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2015-10-30 21:25:19 +0000
committerFred Bricon2015-10-30 21:25:19 +0000
commit299de62c9b86fef8bb85a54e96fed8ca9541d86d (patch)
tree9d3147b4984fdcf666ef8664dff5962d103c9adc
parentc33f0727447fbedc2c835ba1bf6cb4b06594161c (diff)
downloadm2e-core-299de62c9b86fef8bb85a54e96fed8ca9541d86d.tar.gz
m2e-core-299de62c9b86fef8bb85a54e96fed8ca9541d86d.tar.xz
m2e-core-299de62c9b86fef8bb85a54e96fed8ca9541d86d.zip
481153 : check if form is disposed in FormUtils.setMessageAndTTip
Change-Id: I4aef0ee72300eba8a3de0b4888151f2e025436a1 Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java
index 06ce92ad..27f595e1 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java
@@ -107,6 +107,9 @@ public abstract class FormUtils {
public static void setMessageAndTTip(final ScrolledForm form, final String message, final String ttip,
final int severity) {
+ if(form.isDisposed()) {
+ return;
+ }
form.getForm().setMessage(message, severity);
addFormTitleListeners(createDefaultPerformer(form, message, ttip, severity), form);
}

Back to the top