mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix crash in HTTP libraries if server doesn't return a description
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19963
This commit is contained in:
parent
4d3b2c0cca
commit
fa75fb40be
@ -65,7 +65,10 @@ public:
|
|||||||
|
|
||||||
std::string getCategoryDescription( const std::string& aCategoryName ) const
|
std::string getCategoryDescription( const std::string& aCategoryName ) const
|
||||||
{
|
{
|
||||||
return m_categoryDescriptions.at( aCategoryName );
|
if( m_categoryDescriptions.contains( aCategoryName ) )
|
||||||
|
return m_categoryDescriptions.at( aCategoryName );
|
||||||
|
else
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& getCachedParts() { return m_cache; }
|
auto& getCachedParts() { return m_cache; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user