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 (constructDeltas(deltas, references, (EObject) window.getMainMenu(), element, id)) {
				return true;
			}
			if (object instanceof MTrimmedWindow) {
				MTrimmedWindow trimmedWindow = (MTrimmedWindow) object;
				for (MTrimBar trimBar : trimmedWindow.getTrimBars()) {
					if (constructDeltas(deltas, references, (EObject) trimBar, element, id)) {
						return true;
					}
				}
			}
		}
		if (object instanceof MHandledItem) {
			for (MParameter parameter : ((MHandledItem) object).getParameters()) {
				if (constructDeltas(deltas, references, (EObject) parameter, element, id)) {
					return true;
				}
			}
		}
		return false;
	}
	private void constructDeltas(Collection<ModelDelta> deltas, List<Object> references,
			EObject object, Element element) {
		String elementName = element.getNodeName();
		if (elementName.equals(CONTEXT_PROPERTIES_ATTNAME)) {
			constructEntryDelta(deltas, UiPackageImpl.eINSTANCE.getContext_Properties(), object,
					element);
		} else if (elementName.equals(CONTRIBUTION_PERSISTEDSTATE_ATTNAME)) {
			constructEntryDelta(deltas,
					ApplicationPackageImpl.eINSTANCE.getContribution_PersistedState(), object,