Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when there is no <url> under <license> #235

Closed
ppalaga opened this issue Feb 5, 2019 · 0 comments
Closed

NPE when there is no <url> under <license> #235

ppalaga opened this issue Feb 5, 2019 · 0 comments
Assignees
Milestone

Comments

@ppalaga
Copy link
Contributor

ppalaga commented Feb 5, 2019

Happens e.g. for ca.uhn.hapi:hapi-base:jar:2.3:compile

Caused by: java.lang.NullPointerException
    at java.util.regex.Matcher.getTextLength (Matcher.java:1283)
    at java.util.regex.Matcher.reset (Matcher.java:309)
    at java.util.regex.Matcher.<init> (Matcher.java:229)
    at java.util.regex.Pattern.matcher (Pattern.java:1093)
    at org.codehaus.mojo.license.AbstractDownloadLicensesMojo.rewriteLicenseUrlIfNecessary (AbstractDownloadLicensesMojo.java:998)
    at org.codehaus.mojo.license.AbstractDownloadLicensesMojo.downloadLicenses (AbstractDownloadLicensesMojo.java:898)
    at org.codehaus.mojo.license.AbstractDownloadLicensesMojo.execute (AbstractDownloadLicensesMojo.java:484)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
@ppalaga ppalaga self-assigned this Feb 5, 2019
@ppalaga ppalaga closed this as completed in 1942da6 Feb 5, 2019
ppalaga added a commit that referenced this issue Feb 5, 2019
Fix #235 NPE when there is no <url> under <license>
@ppalaga ppalaga added this to the 1.18 milestone Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant