From b392f199fb8d60fa1f6a9c0c31e0da72f98e13d9 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Tue, 29 Nov 2005 10:36:47 +0000 Subject: [PATCH] prevent NPE in equals() git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@349699 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/maven/artifact/DefaultArtifact.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java b/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java index b202bde1fd..0e45e3296c 100644 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java +++ b/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java @@ -305,7 +305,7 @@ public class DefaultArtifact { return false; } - else if ( classifier == null ? a.getClassifier() != null : !a.getClassifier().equals( classifier ) ) + else if ( a.getClassifier() == null ? classifier != null : !a.getClassifier().equals( classifier ) ) { return false; }