Project: Eclipse_Platform_UI
Bug 134750 [DataBinding] TextObservableValue throws NPE on change if the intial model value is null
Reported: 2006-04-04 10:07:29 | Status: resolved fixed

When binding a Text to a model attribute that has an intial value of null ObservableTextValue throws a NPE when updating the view. In "updateListener" it assumes that oldValue != null. I'll attach a JUnit that throws the Exception.

Files changed in fix:
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/internal/swt/TextObservableValue.java tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/BindingScenariosTestSuite.java tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/NPETestScenario.java