Bug 324841 Launching with -persistState false leads to an NPE
Like reported on the newsgroup launching with this flag set to true leads to an NPE because we still try to load the deltas.
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/ResourceHandler.java
}
	private MApplication loadDefaultModel(URI defaultModelPath) {
		Resource resource = loadResource(defaultModelPath);
		MApplication app = (MApplication) resource.getContents().get(0);
		return app;
	}
	
	private Resource loadResource(URI uri) {
		Resource resource;
		try {
			resource = resourceSetImpl.getResource(uri, true);
		} catch (Exception e) {
			
			logger.error(e);
			resource = resourceSetImpl.getResource(uri, false);
		}
		return resource;
	}
	public void save() throws IOException {
		if (deltaRestore && reconciler != null) {
			try {
				Document document = (Document) reconciler.serialize();
				
				TransformerFactory tFactory = TransformerFactory.newInstance();
				Transformer transformer = tFactory.newTransformer();
				DOMSource source = new DOMSource(document);
				File f = new File(restoreLocation.toFileString());
				f.getParentFile().mkdirs();
				StreamResult result = new StreamResult(f);
				transformer.transform(source, result);