You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by dk...@apache.org on 2007/03/12 15:27:53 UTC
svn commit: r517229 - in /maven/plugins/trunk/maven-checkstyle-plugin:
pom.xml
src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java
Author: dkulp
Date: Mon Mar 12 07:27:52 2007
New Revision: 517229
URL: http://svn.apache.org/viewvc?view=rev&rev=517229
Log:
Fix problem with NullPointerException if no suppression file is specified
Modified:
maven/plugins/trunk/maven-checkstyle-plugin/pom.xml
maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java
Modified: maven/plugins/trunk/maven-checkstyle-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/pom.xml?view=diff&rev=517229&r1=517228&r2=517229
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/pom.xml Mon Mar 12 07:27:52 2007
@@ -22,7 +22,7 @@
<parent>
<artifactId>maven-plugins</artifactId>
<groupId>org.apache.maven.plugins</groupId>
- <version>8-SNAPSHOT</version>
+ <version>8</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<prerequisites>
Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java?view=diff&rev=517229&r1=517228&r2=517229
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java Mon Mar 12 07:27:52 2007
@@ -1009,7 +1009,10 @@
{
String suppresionFile = getSuppressionLocation();
- p.setProperty( suppressionsFileExpression, suppresionFile );
+ if ( suppresionFile != null )
+ {
+ p.setProperty( suppressionsFileExpression, suppresionFile );
+ }
}
return p;