Fixed bug when no connection defined for connectionPointIn
authorLaurent Bessard
Tue, 06 Aug 2013 01:29:14 +0200
changeset 1285 fa77f3b8f182
parent 1284 abf63a310532
child 1286 adda406d3960
Fixed bug when no connection defined for connectionPointIn
plcopen/plcopen.py
--- a/plcopen/plcopen.py	Tue Aug 06 01:28:42 2013 +0200
+++ b/plcopen/plcopen.py	Tue Aug 06 01:29:14 2013 +0200
@@ -2801,6 +2801,7 @@
     def getconnections(self):
         if self.content:
             return self.content["value"]
+        return []
     setattr(cls, "getconnections", getconnections)
     
     def setconnectionId(self, idx, id):
@@ -2822,7 +2823,7 @@
     def getconnectionPoints(self, idx):
         if self.content:
             return self.content["value"][idx].getpoints()
-        return None
+        return []
     setattr(cls, "getconnectionPoints", getconnectionPoints)
 
     def setconnectionParameter(self, idx, parameter):