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:
parent
728ddc45e0
commit
cc24bf9192
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user