From f18217ffc0821fc1a3425a1407408853d04ad8b1 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Fri, 27 Nov 2009 21:52:21 +0000 Subject: [PATCH] https://issues.shibboleth.net/jira/browse/CPPXT-50 --- xmltooling/AbstractXMLObject.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmltooling/AbstractXMLObject.cpp b/xmltooling/AbstractXMLObject.cpp index 0ebd079..58efeda 100644 --- a/xmltooling/AbstractXMLObject.cpp +++ b/xmltooling/AbstractXMLObject.cpp @@ -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(); -- 2.1.4