Fix bug in POUinstanceVariablesPanel when no tagname defined
authorLaurent Bessard
Sun, 03 Jun 2012 23:47:56 +0200
changeset 701 25fbbb005a30
parent 700 cf3db1775105
child 702 ece862b07321
Fix bug in POUinstanceVariablesPanel when no tagname defined
controls/PouInstanceVariablesPanel.py
--- a/controls/PouInstanceVariablesPanel.py	Sun Jun 03 23:47:13 2012 +0200
+++ b/controls/PouInstanceVariablesPanel.py	Sun Jun 03 23:47:56 2012 +0200
@@ -132,7 +132,7 @@
         self.InstanceChoice.Clear()
         self.InstanceChoice.SetValue("")
         
-        if self.PouTagName is not None:
+        if self.Controller is not None and self.PouTagName is not None:
             self.PouInfos = self.Controller.GetPouVariables(self.PouTagName, self.Debug)
         else:
             self.PouInfos = None