small fix for show/hide ChRtSpecification command
diff --git a/plugins/org.polarsys.chess.commands/src/org/polarsys/chess/commands/ShowRTInformationCommand.java b/plugins/org.polarsys.chess.commands/src/org/polarsys/chess/commands/ShowRTInformationCommand.java
index b2b187f..b88d9db 100644
--- a/plugins/org.polarsys.chess.commands/src/org/polarsys/chess/commands/ShowRTInformationCommand.java
+++ b/plugins/org.polarsys.chess.commands/src/org/polarsys/chess/commands/ShowRTInformationCommand.java
@@ -122,7 +122,10 @@
 			if (temp instanceof BasicCompartmentImpl){
 				Iterator iter2 = ((BasicCompartmentImpl) temp).getPersistedChildren().iterator();
 				while (iter2.hasNext()){
-					showHideRT((Shape)iter2.next(), visibility);
+					Object obj = iter2.next();
+					if(obj instanceof Shape){
+						showHideRT((Shape)obj, visibility);
+					}
 				}
 			}
 		}