Commits

mazaninfardi  committed 96a3d9d

(no commit message)

  • Participants
  • Parent commits 085650d

Comments (0)

Files changed (1)

File src/nl/tudelft/lime/model/LimeSubpart.java

         LimeSubpart targetNode) {
     	//the exception is for the state variables in which both ports are
     	//in the same hierarchy but they should be handled by the outerior component
-    	if (targetNode.getParent().equals(sourceNode.getParent()))
+    	if ((targetNode.getParent() != null) &&
+    	(targetNode.getParent().equals(sourceNode.getParent())))
     		return false;
     	
         //go up