Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Agüero <[email protected]>
  • Loading branch information
caguero committed Aug 12, 2021
1 parent 858f377 commit c428d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ignition/gazebo/components/Model.hh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace serializers
std::string sdf(std::istreambuf_iterator<char>(_in), {});

sdf::Errors errors = root.LoadSdfString(sdf);
if (!errors.empty())
if (!root.Element()->HasElement("model"))
{
ignerr << "Unable to unserialize sdf::Model" << std::endl;
return _in;
Expand Down

0 comments on commit c428d20

Please sign in to comment.