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
element.setContainerData(Integer.toString(100));
			info = element.getContainerData();
		}
		try {
			int value = Integer.parseInt(info);
			return value;
		} catch (NumberFormatException e) {
			return UNDEFINED_WEIGHT;
		}
	}
	private static int[] getModelWeights(MElementContainer<MUIElement> psc) {
		int count = 0;
		for (MUIElement element : psc.getChildren()) {
			if (element.getWidget() != null && element.isVisible())
				count++;
		}
		int[] modelWeights = new int[count];
		int index = 0;
		for (MUIElement element : psc.getChildren()) {
			if (element.getWidget() != null && element.isVisible())
				modelWeights[index++] = getWeight(element);
		}
		return modelWeights;
	}
	private static MUIElement[] getModelElements(SashForm sf) {
		Object me = sf.getData(OWNING_ME);
		if (!(me instanceof MPartSashContainer))
			return null;
		MPartSashContainer psc = (MPartSashContainer) me;
		List<MUIElement> modelElements = new ArrayList<MUIElement>();