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
Element rootElement = document.getDocumentElement();
		String version = rootElement.getAttribute(VERSION_ATTNAME);
		try {
			if (version == null || version.length() == 0
					|| Double.parseDouble(version) < Double.parseDouble(VERSION_NUMBER)) {
				return deltas;
			}
		} catch (NumberFormatException e) {
			
			return deltas;
		}
		NodeList rootNodeList = (NodeList) rootElement;
		for (int i = 0; i < rootNodeList.getLength(); i++) {
			Node node = rootNodeList.item(i);
			if (node instanceof Element) {
				Element element = (Element) node;
				constructDeltas(deltas, references, rootObject, element,
						element.getAttribute(APPLICATIONELEMENT_ELEMENTID_ATTNAME));
			}
		}
		return deltas;
	}
	private static EStructuralFeature getStructuralFeature(EObject object, String featureName) {
		for (EStructuralFeature sf : object.eClass().getEAllStructuralFeatures()) {
			if (sf.getName().equals(featureName)) {
				return sf;
			}
		}
		return null;
	}