You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Philipp Ottlinger (Jira)" <ji...@apache.org> on 2025/12/31 14:43:00 UTC

[jira] [Comment Edited] (RAT-531) Fix NPE on families is null

    [ https://issues.apache.org/jira/browse/RAT-531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18048567#comment-18048567 ] 

Philipp Ottlinger edited comment on RAT-531 at 12/31/25 2:42 PM:
-----------------------------------------------------------------

[~xiaoping.huang] wow - what a big project. Unfortunately I'm unable to build it locally, but feel free to go ahead with the following change (attached as RAT-531.patch) in your central pom.xml and run:

mvn apache-rat:rat

afterwards.

It might speed up your build to include the Maven wrapper in your project:
https://maven.apache.org/tools/wrapper/
and use a fixed Maven version during the build of your project.


was (Author: hugo.hirsch):
[~xiaoping.huang] wow - what a big project. Unfortunately I'm unable to build it locally, but feel free to go ahead with the following change in your central pom.xml:

mvn apache-rat:rat





> Fix NPE on families is null
> ---------------------------
>
>                 Key: RAT-531
>                 URL: https://issues.apache.org/jira/browse/RAT-531
>             Project: Apache RAT
>          Issue Type: Bug
>            Reporter: xiaoping.huang
>            Priority: Critical
>             Fix For: 0.18
>
>         Attachments: RAT-531.patch
>
>
> {code:java}
> Caused by: java.lang.NullPointerException: Cannot read the array length because "this.families" is null
>     at org.apache.rat.mp.AbstractRatMojo.getConfiguration (AbstractRatMojo.java:508)
>     at org.apache.rat.mp.RatCheckMojo.getConfiguration (RatCheckMojo.java:166)
>     at org.apache.rat.mp.RatCheckMojo.execute (RatCheckMojo.java:205)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
>     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
>     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
>     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:569)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)