Community
Participate
Working Groups
In this method the name feature is resolved by calling getNameFeature(). The default implementation will use SimpleAttributeResolver.NAME_RESOLVER.getAttribute(object) This can return null when the object does not have a 'name' feature, but the IQualifiedNameProvider resolved a name from another feature. When calling the acceptor with a null feature, this will result in a NPE. The situation should be handled more gracefully.
the parameter 'feature' is declared as nullable, so any implementation should be able to handle that. * @param feature the feature or <code>null</code> if the complete instance should be annotated.