Author: brett Date: Tue Dec 6 05:47:11 2011 New Revision: 1210790 URL: http://svn.apache.org/viewvc?rev=1210790&view=rev Log: [NPANDAY-410] local repo should always be specified
Modified: incubator/npanday/trunk/components/dotnet-core/src/main/java/npanday/PathUtil.java Modified: incubator/npanday/trunk/components/dotnet-core/src/main/java/npanday/PathUtil.java URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-core/src/main/java/npanday/PathUtil.java?rev=1210790&r1=1210789&r2=1210790&view=diff ============================================================================== --- incubator/npanday/trunk/components/dotnet-core/src/main/java/npanday/PathUtil.java (original) +++ incubator/npanday/trunk/components/dotnet-core/src/main/java/npanday/PathUtil.java Tue Dec 6 05:47:11 2011 @@ -115,13 +115,11 @@ public final class PathUtil { if ( artifact == null ) { - logger.warning( "NPANDAY-040-007: Artifact is null - Cannot get repository file." ); - return null; + throw new NullPointerException( "NPANDAY-040-007: Artifact is null - Cannot get repository file." ); } if ( localRepository == null ) { - logger.warning( "NPANDAY-040-008: Local Repository is null - Cannot get repository file." ); - return null; + throw new NullPointerException( "NPANDAY-040-008: Local Repository is null - Cannot get repository file." ); } return new File( localRepository, new DefaultRepositoryLayout().pathOf( artifact ) ); }