mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-09-26 12:06:09 +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:
@@ -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 : "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user