mirror of https://github.com/apache/archiva.git
guard against NPE
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@630842 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a88253bafe
commit
63555143b2
|
@ -93,15 +93,15 @@ public class ArtifactExtensionMapping
|
|||
|
||||
public static String mapExtensionToType( String extension )
|
||||
{
|
||||
if ( extension.equals( "tar.gz" ) )
|
||||
if ( "tar.gz".equals( extension ) )
|
||||
{
|
||||
return "distribution-tgz";
|
||||
}
|
||||
else if ( extension.equals( "tar.bz2" ) )
|
||||
else if ( "tar.bz2".equals( extension ) )
|
||||
{
|
||||
return "distribution-bzip";
|
||||
}
|
||||
else if ( extension.equals( "zip" ) )
|
||||
else if ( "zip".equals( extension ) )
|
||||
{
|
||||
return "distribution-zip";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue