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
}
			}
		}
		if (object instanceof MContribution) {
			for (Entry<String, String> state : ((MContribution) object).getPersistedState()
					.entrySet()) {
				if (state == entry) {
					return CONTRIBUTION_PERSISTEDSTATE_ATTNAME;
				}
			}
		}
		return null;
	}
	private Element persistEntry(Document document, EObject object) {
		EObject container = object.eContainer();
		if (getOriginalId(container) == null) {
			return null;
		}
		Entry<?, ?> entry = (Entry<?, ?>) object;
		String elementName = getEntryElementName(container, entry);
		if (elementName == null) {
			return null;
		}
		Element element = createElement(document, elementName, container);
		element.setAttribute(ENTRY_ATTVALUE_KEY, (String) entry.getKey());
		String value = (String) entry.getValue();
		if (value == null) {
			element.setAttribute(UNSET_ATTNAME, UNSET_ATTVALUE_TRUE);
		} else {
			element.setAttribute(ENTRY_ATTVALUE_VALUE, (String) entry.getValue());