mirror of https://github.com/apache/archiva.git
[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:
parent
298cdde075
commit
dcaeec7ff7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue