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
This commit is contained in:
Václav Slavík 2007-09-24 22:09:06 +00:00
parent 728ddc45e0
commit cc24bf9192

View File

@ -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)