Author: svasilyev
Date: 2008-10-09 02:41:40 -0400 (Thu, 09 Oct 2008)
New Revision: 10761
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ExtendedFieldEditor.java
Log:
JBIDE-2871
Fixed by Slava Kabanovich, while in Minsk
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ExtendedFieldEditor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ExtendedFieldEditor.java 2008-10-09
05:55:47 UTC (rev 10760)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ExtendedFieldEditor.java 2008-10-09
06:41:40 UTC (rev 10761)
@@ -209,7 +209,7 @@
public void setErrorProvider(IAttributeErrorProvider errorProvider) {
this.errorProvider = errorProvider;
- if(this instanceof PropertyChangeListener) {
+ if(this instanceof PropertyChangeListener && errorProvider != null) {
errorProvider.addErrorStateListener((PropertyChangeListener)this);
}
}
Show replies by date