We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfa75db commit 170470fCopy full SHA for 170470f
rviz_common/src/rviz_common/load_resource.cpp
@@ -50,8 +50,12 @@ namespace rviz_common
50
resource_retriever::ResourceSharedPtr getResource(const std::string & resource_path)
51
{
52
RVIZ_COMMON_LOG_DEBUG("rviz_common::getResource() loading resource: " + resource_path);
53
- resource_retriever::Retriever retriever;
54
- return retriever.get_shared(resource_path);
+ try {
+ resource_retriever::Retriever retriever;
55
+ return retriever.get_shared(resource_path);
56
+ } catch (...) {
57
+ return nullptr;
58
+ }
59
}
60
61
QPixmap loadPixmap(QString url, bool fill_cache)
0 commit comments