diff --git a/hurricane/src/hurricane/NetRoutingProperty.cpp b/hurricane/src/hurricane/NetRoutingProperty.cpp index 0e6f381c..7547221e 100644 --- a/hurricane/src/hurricane/NetRoutingProperty.cpp +++ b/hurricane/src/hurricane/NetRoutingProperty.cpp @@ -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() );