diff -r 8137a7face88 -r 52689bda4686 PLCGenerator.py --- a/PLCGenerator.py Wed Dec 16 15:20:56 2009 +0100 +++ b/PLCGenerator.py Tue Jun 01 12:41:14 2010 +0200 @@ -926,6 +926,8 @@ elif type(paths) == ListType: vars = [self.ComputePaths(path) for path in paths] return JoinList([(" AND ", ())], vars) + elif paths is None: + return [("TRUE", ())] else: return eval(paths) @@ -990,7 +992,7 @@ instances = [] for connectionPointIn in convergence.getconnectionPointIn(): connections = connectionPointIn.getconnections() - if len(connections) == 1: + if connections is not None and len(connections) == 1: instanceLocalId = connections[0].getrefLocalId() body = pou.getbody() if isinstance(body, ListType): @@ -1010,7 +1012,7 @@ if step.connectionPointIn: instances = [] connections = step.connectionPointIn.getconnections() - if len(connections) == 1: + if connections is not None and len(connections) == 1: instanceLocalId = connections[0].getrefLocalId() body = pou.getbody() if isinstance(body, ListType): @@ -1039,7 +1041,7 @@ if jump.connectionPointIn: instances = [] connections = jump.connectionPointIn.getconnections() - if len(connections) == 1: + if connections is not None and len(connections) == 1: instanceLocalId = connections[0].getrefLocalId() body = pou.getbody() if isinstance(body, ListType):