Bug 338444 Unable to restart after upgrade
I upgraded from I20110114 to I20110225. After the upgrading, the workbench will not start. There are a large number of NPE's in the log. I will attach the whole log, but here are some example: Caused by: java.lang.NullPointerException at org.eclipse.ui.internal.Workbench.contains(Workbench.java:1870) at org.eclipse.ui.internal.Workbench.defineBindingTable(Workbench.java:1852) java.lang.NullPointerException at org.eclipse.ui.internal.Workbench.setReference(Workbench.java:1681) at org.eclipse.ui.internal.Workbench.access$19(Workbench.java:1677)
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/XMLModelReconciler.java
EObject object) {
		if (getOriginalId(object) == null) {
			return null;
		}
		Element modelChange = null;
		List<FeatureChange> featureChanges = entry.getValue();
		for (FeatureChange featureChange : featureChanges) {
			
			if (!featureChange.getFeature().isTransient()) {
				String featureName = featureChange.getFeatureName();
				
				if (shouldPersist(featureName)) {
					if (modelChange == null) {
						
						modelChange = createElement(document, object);
					}
					
					Element deltaElement = createDeltaElement(document, object, featureChange,
							featureName);
					modelChange.appendChild(deltaElement);
				}
			}
		}
		return modelChange;
	}
	private String getEntryElementName(EObject object, Entry<?, ?> entry) {
		if (object instanceof MContext) {
			for (Entry<String, String> property : ((MContext) object).getProperties().entrySet()) {
				if (property == entry) {
					return CONTEXT_PROPERTIES_ATTNAME;