From dc99a2d78500e685aac67796c66429f3e7b53e3a Mon Sep 17 00:00:00 2001 From: cantor Date: Fri, 27 Nov 2009 21:52:21 +0000 Subject: [PATCH] https://bugs.internet2.edu/jira/browse/CPPXT-50 git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@685 de75baf8-a10c-0410-a50a-987c0e22f00f --- 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