]> code.delx.au - pymsnt/commitdiff
Fixed exception with blank msnobj
authorjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Sun, 2 Jul 2006 13:40:27 +0000 (13:40 +0000)
committerjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Sun, 2 Jul 2006 13:40:27 +0000 (13:40 +0000)
git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@182 55fbd22a-6204-0410-b2f0-b6c764c7e90a

committer: jamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>

src/tlib/msn/msn.py

index 0d7d1d700392a1cbb9729dd9346665401c5adf6b..6b5376ff7396365788ccfc1ddf767c9b6f3e3b81 100644 (file)
@@ -487,10 +487,9 @@ class MSNObject:
     """
     def __init__(self, s=""):
         """ Pass a XML MSNObject string to parse it, or pass no arguments for a null MSNObject to be created. """
+        self.setNull()
         if s:
             self.parse(s)
-        else:
-            self.setNull()
     
     def setData(self, creator, imageData):
         """ Set the creator and imageData for this object """