mirror of https://github.com/apache/maven.git
If it's not a pluginDescriptor then it's not equals and we should not throw a CCE
This commit is contained in:
parent
e2b7ea2a96
commit
6c6b34b080
|
@ -272,7 +272,7 @@ public class PluginDescriptor
|
|||
return true;
|
||||
}
|
||||
|
||||
return getId().equals( ( (PluginDescriptor) object ).getId() );
|
||||
return object instanceof PluginDescriptor && getId().equals( ( (PluginDescriptor) object ).getId() );
|
||||
}
|
||||
|
||||
public int hashCode()
|
||||
|
|
Loading…
Reference in New Issue