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


##########
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:
   I've verified that adding this change makes the RAT plugin work correctly 
without any NPEs. The cause of the NPE was a data 
[file](https://github.com/apache/hudi/blob/master/hudi-common/src/test/resources/format/delete-block-v2-content-10-records.data)
 in the project that lacked an Apache License. Currently, I'm avoiding NPE by 
excluding this file from the check.



-- 
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