[MRM-731] fix failure introduced by previous commit

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@630844 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2008-02-25 13:44:23 +00:00
parent 298cdde075
commit dcaeec7ff7
1 changed files with 6 additions and 1 deletions

View File

@ -156,7 +156,12 @@ public class DefaultPathParser implements PathParser
break;
case 0:
// End of the filename, only a simple extension left. - Set the type.
artifact.setType( ArtifactExtensionMapping.mapExtensionToType( parser.getExtension() ) );
String type = ArtifactExtensionMapping.mapExtensionToType( parser.getExtension() );
if ( type == null )
{
throw new LayoutException( "Invalid artifact: no type was specified" );
}
artifact.setType( type );
break;
}