https://bugs.internet2.edu/jira/browse/CPPXT-50
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Fri, 27 Nov 2009 21:52:21 +0000 (21:52 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Fri, 27 Nov 2009 21:52:21 +0000 (21:52 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@685 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/AbstractXMLObject.cpp

index 0ebd079..58efeda 100644 (file)
@@ -244,6 +244,8 @@ DateTime* AbstractXMLObject::prepareForAssignment(DateTime* oldValue, const XMLC
 {
     delete oldValue;
     releaseThisandParentDOM();
+    if (!newValue || !*newValue)
+        return NULL;
     DateTime* ret = new DateTime(newValue);
     if (duration)
         ret->parseDuration();