ottlinger commented on code in PR #602:
URL: https://github.com/apache/creadur-rat/pull/602#discussion_r2655500561


##########
apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java:
##########
@@ -504,7 +504,7 @@ protected ReportConfiguration getConfiguration() throws 
MojoExecutionException {
                     }
                 }
                 if (families != null || 
getDeprecatedConfigs().findAny().isPresent()) {
-                    if (log.isEnabled(Log.Level.DEBUG)) {
+                    if (log.isEnabled(Log.Level.DEBUG) && families != null) {

Review Comment:
   You are running into this NPE due to wrong configuration as the if in line 
506 indicates - the families null check is applied but due to the deprecated 
configuration options this line is entered :)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to