If it's not a pluginDescriptor then it's not equals and we should not throw a CCE

This commit is contained in:
Stephen Connolly 2014-01-06 11:01:50 +00:00
parent e2b7ea2a96
commit 6c6b34b080
1 changed files with 1 additions and 1 deletions

View File

@ -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()