moved condition to right place
diff --git a/1.5/plugins/org.eclipse.epf.diagram.ui/src/org/eclipse/epf/diagram/ui/viewer/AbstractDiagramGraphicalViewer.java b/1.5/plugins/org.eclipse.epf.diagram.ui/src/org/eclipse/epf/diagram/ui/viewer/AbstractDiagramGraphicalViewer.java
index f803766..7052297 100644
--- a/1.5/plugins/org.eclipse.epf.diagram.ui/src/org/eclipse/epf/diagram/ui/viewer/AbstractDiagramGraphicalViewer.java
+++ b/1.5/plugins/org.eclipse.epf.diagram.ui/src/org/eclipse/epf/diagram/ui/viewer/AbstractDiagramGraphicalViewer.java
@@ -138,15 +138,14 @@
 			IFigure widenedWrapLabel = null;
 			if (activityNodeFigure != null) {
 				List children = ((IFigure) activityNodeFigure).getChildren();
-				if (children != null && !children.isEmpty())
+				if (children != null && !children.isEmpty()) {
 					widenedWrapLabel = (IFigure) activityNodeFigure
 							.getChildren().get(0);
-
-			}
-
-			if (widenedWrapLabel instanceof WidenedWrapLabel) {
-				widenedWrapLabel.setForegroundColor(new Color(null, 0, 0, 0));
-			}
+					if (widenedWrapLabel instanceof WidenedWrapLabel) {
+						widenedWrapLabel.setForegroundColor(new Color(null, 0, 0, 0));
+					}
+				}
+			}			
 		}
 
 		SWTGraphics graphics = null;