projects
/
shibboleth
/
cpp-xmltooling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
https://issues.shibboleth.net/jira/browse/CPPXT-50
[shibboleth/cpp-xmltooling.git]
/
xmltooling
/
AbstractXMLObject.cpp
diff --git
a/xmltooling/AbstractXMLObject.cpp
b/xmltooling/AbstractXMLObject.cpp
index
0ebd079
..
58efeda
100644
(file)
--- 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();