This is an automated email from the ASF dual-hosted git repository.

pottlinger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git


The following commit(s) were added to refs/heads/master by this push:
     new a7d475ef RAT-349: Fix NPE on addDefaultLicenses=false
     new 3d83f774 Merge pull request #196 from nielsbasjes/RAT-349-NPEfix
a7d475ef is described below

commit a7d475efc520aec69ca9c8cc4665e957fbbe3fb7
Author: Niels Basjes <[email protected]>
AuthorDate: Sat Jan 13 17:35:33 2024 +0100

    RAT-349: Fix NPE on addDefaultLicenses=false
---
 apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java 
b/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
index 8c54a202..2480526a 100644
--- a/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
+++ b/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
@@ -318,6 +318,8 @@ public abstract class AbstractRatMojo extends AbstractMojo {
         reportDeprecatedProcessing();
         if (addDefaultLicenses) {
             config.setFrom(getDefaultsBuilder().build());
+        } else {
+            config.setStyleSheet(Defaults.getPlainStyleSheet());
         }
         if (additionalLicenseFiles != null) {
             for (String licenseFile : additionalLicenseFiles) {

Reply via email to