Skip to content

Fix: Ensure the resource is not None before we call getUrl#80

Open
ogios wants to merge 1 commit intotesseract-robotics:masterfrom
ogios:fix-resource-non
Open

Fix: Ensure the resource is not None before we call getUrl#80
ogios wants to merge 1 commit intotesseract-robotics:masterfrom
ogios:fix-resource-non

Conversation

@ogios
Copy link

@ogios ogios commented Dec 3, 2025

The resource can potentially be None because of this piece of code in tesseract:

https://github.com/tesseract-robotics/tesseract/blob/821da48bf9b9a16a4cfeeffb39631b9797bbd6d8/tesseract_geometry/include/tesseract_geometry/mesh_parser.h#L403

  return createMeshFromAsset<T>(scene, scale, nullptr, normals, vertex_colors, material_and_texture);

It will raise error 'NoneType' object has no attribute 'getUrl' and break the program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant