https://issues.shibboleth.net/jira/browse/CPPXT-50 1.3.2
authorScott Cantor <cantor.2@osu.edu>
Fri, 27 Nov 2009 21:52:21 +0000 (21:52 +0000)
committerScott Cantor <cantor.2@osu.edu>
Fri, 27 Nov 2009 21:52:21 +0000 (21:52 +0000)
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();