diff options
-rw-r--r-- | propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/AbstractTextPropertyEditor.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/AbstractTextPropertyEditor.java b/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/AbstractTextPropertyEditor.java index dd651af..8b07c4d 100644 --- a/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/AbstractTextPropertyEditor.java +++ b/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/AbstractTextPropertyEditor.java @@ -317,6 +317,11 @@ public abstract class AbstractTextPropertyEditor extends TextDisplayPropertyEdit * @return <code>true</code> if transfer was successful. */ private boolean toProperty(Property property) throws Exception { + // BEGIN ADT MODIFICATIONS + if (m_textControl == null) { + return false; + } + // END ADT MODIFICATIONS String text = m_textControl.getText(); // change property only if text was changed if (!m_currentText.equals(text)) { |