From: <jsa...@us...> - 2008-11-14 15:31:54
|
Revision: 99 http://flexotask.svn.sourceforge.net/flexotask/?rev=99&view=rev Author: jsauerbach Date: 2008-11-14 15:31:39 +0000 (Fri, 14 Nov 2008) Log Message: ----------- Fix bug that caused connections to/from communicators to fail if the communicator had not had a type assigned. What should happen (and what now happens) is that the connection remains untyped but is created and the type can be assigned later Modified Paths: -------------- trunk/flexotask-editor/src/com/ibm/realtime/flexotask/editor/model/Connection.java Modified: trunk/flexotask-editor/src/com/ibm/realtime/flexotask/editor/model/Connection.java =================================================================== --- trunk/flexotask-editor/src/com/ibm/realtime/flexotask/editor/model/Connection.java 2008-11-13 18:50:14 UTC (rev 98) +++ trunk/flexotask-editor/src/com/ibm/realtime/flexotask/editor/model/Connection.java 2008-11-14 15:31:39 UTC (rev 99) @@ -436,7 +436,7 @@ if (newType.length() == 0 && target instanceof Communicator) { newType = ((Communicator) target).getType(); } - if (newType.length() == 0) { + if (newType.length() == 0 && source instanceof NormalTask && target instanceof NormalTask) { /* Try to find a type in common between source and target */ search: for (PortDeclaration decl1 : ((NormalTask) source).getOutputPortDeclarations()) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |