catch up with branch daily

Signed-off-by: Ralf Mollik <ramollik@compex-commerce.com>
diff --git a/org.eclipse.osbp.vaaclipse.presentation/src/org/eclipse/osbp/vaaclipse/presentation/renderers/PerspectiveStackRenderer.java b/org.eclipse.osbp.vaaclipse.presentation/src/org/eclipse/osbp/vaaclipse/presentation/renderers/PerspectiveStackRenderer.java
index b58e9c7..09245f8 100644
--- a/org.eclipse.osbp.vaaclipse.presentation/src/org/eclipse/osbp/vaaclipse/presentation/renderers/PerspectiveStackRenderer.java
+++ b/org.eclipse.osbp.vaaclipse.presentation/src/org/eclipse/osbp/vaaclipse/presentation/renderers/PerspectiveStackRenderer.java
@@ -293,11 +293,13 @@
 			if (stack.getSelectedElement() != null) {
 				showElementRecursive(stack.getSelectedElement());
 				((VerticalLayout) stack.getWidget()).addComponent((Component) stack.getSelectedElement().getWidget());
-				perspective_button.get(stack.getSelectedElement()).setCheckedState(true);
-				perspective_button.get(stack.getSelectedElement()).setSwitchStateByUserClickEnabled(false);
-
-				// mark the perspective as active
-				switchPerspective(stack.getSelectedElement());
+				if(perspective_button.containsKey(stack.getSelectedElement())) {
+					perspective_button.get(stack.getSelectedElement()).setCheckedState(true);
+					perspective_button.get(stack.getSelectedElement()).setSwitchStateByUserClickEnabled(false);
+	
+					// mark the perspective as active
+					switchPerspective(stack.getSelectedElement());
+				}
 			} else if (oldSel instanceof MElementContainer<?>) {
 				disconnectReferencedElementsFromPerspectiveWidgets((MElementContainer<? extends MUIElement>) oldSel);
 			}