From cc24bf919256e8e1d317dbb8e67df6d007d641ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 24 Sep 2007 22:09:06 +0000 Subject: [PATCH] wxXmlNode::GetAttribute's pointer argument must not be NULL, check for it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xml/xml.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xml/xml.cpp b/src/xml/xml.cpp index a35d73b267..1f1539556d 100644 --- a/src/xml/xml.cpp +++ b/src/xml/xml.cpp @@ -143,6 +143,8 @@ bool wxXmlNode::HasAttribute(const wxString& attrName) const bool wxXmlNode::GetAttribute(const wxString& attrName, wxString *value) const { + wxCHECK_MSG( value, false, "value argument must not be NULL" ); + wxXmlAttribute *attr = GetAttributes(); while (attr) -- 2.50.0