mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-05 23:31:06 +00:00
Merge pull request #3301 from crewmatt/master
Update User Data imported from URDF to default to empty string when null
This commit is contained in:
commit
0bf5f2cd84
@ -94,7 +94,8 @@ static void ParseUserData(const XMLElement* element, btHashMap<btHashString,
|
||||
if (!key_attr) {
|
||||
logger->reportError("User data tag must have a key attribute.");
|
||||
}
|
||||
user_data.insert(key_attr, user_data_xml->GetText());
|
||||
const char* text = user_data_xml->GetText();
|
||||
user_data.insert(key_attr, text ? text : "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user