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:
Brett Porter 2008-02-25 13:32:12 +00:00
parent a88253bafe
commit 63555143b2
1 changed files with 3 additions and 3 deletions

View File

@ -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";
}