NetRoutingExtension::get() failsafe when net is NULL.

This commit is contained in:
Jean-Paul Chaput 2022-05-12 17:53:21 +02:00
parent 5ff81b59ec
commit d3b7251eac
1 changed files with 2 additions and 1 deletions

View File

@ -227,7 +227,8 @@ namespace Hurricane {
NetRoutingState* NetRoutingExtension::get ( const Net* net )
{
if (net == _owner) return _cache;
if (not net) return NULL;
if ((net == _owner) and _cache) return _cache;
_owner = net;
Property* property = _owner->getProperty( NetRoutingProperty::getPropertyName() );