Bug 134750 [DataBinding] TextObservableValue throws NPE on change if the intial model value is null
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.
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/BindingScenariosTestSuite.java
/*******************************************************************************
 * Copyright (c) 2005, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jface.tests.databinding.scenarios;
import junit.extensions.TestSetup;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.jface.tests.databinding.BindingTestSuite;
import org.eclipse.jface.tests.databinding.swt.AutoSelectTableViewerCollectionExtendedTest;
import org.eclipse.jface.tests.databinding.swt.AutoSelectTableViewerCollectionTest;
import org.eclipse.jface.tests.databinding.swt.CComboObservableCollectionTest;
import org.eclipse.jface.tests.databinding.swt.ComboObservableCollectionTest;
import org.eclipse.jface.tests.databinding.swt.ListObservableCollectionTest;
import org.eclipse.jface.tests.databinding.swt.ObservableCollectionViewerTest;
import org.eclipse.jface.tests.databinding.swt.TableViewerObservableCollectionTest;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
/**
 * To run this test suite, right-click and select "Run As JUnit Plug-in Test".
 * This will also start an Eclipse instance. To clean up the launch
 * configuration, open up its "Main" tab and select "[No Application] - Headless