Bug 324230 NPE thrown when unrendering an MPartSashContainer that contains unrendered children
java.lang.NullPointerException at org.eclipse.e4.ui.workbench.renderers.swt.SashRenderer.hideChild(SashRenderer.java:317) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:517) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:528)
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/SashRenderer.java
for (MUIElement element : psc.getChildren()) {
			if (element.getWidget() != null && element.isVisible())
				modelElements.add(element);
		}
		return modelElements.toArray(new MUIElement[modelElements.size()]);
	}
	/**
	 * @param psc
	 */
	private void synchSashToModel(MElementContainer<MUIElement> psc) {
		if (!(psc.getWidget() instanceof SashForm))
			return;
		SashForm sf = (SashForm) psc.getWidget();
		if (sf.isDisposed())
			return;
		int[] curWeights = sf.getWeights();
		assert (curWeights.length > 0);
		int[] newWeights = getModelWeights(psc);
		
		if (newWeights.length > 0)
			sf.setWeights(newWeights);
		sf.layout();
		weightsMap.put(sf, newWeights);
		curWeights = sf.getWeights();
	}
	/**
	 * @param psc
	 */
	private void synchModelToSash(SashForm sf) {