Skip to content
This repository was archived by the owner on Jun 26, 2021. It is now read-only.
This repository was archived by the owner on Jun 26, 2021. It is now read-only.

releaseArgs -Dproperty instead of -Dproperty=true gives NPE #109

@andreasaronsson

Description

@andreasaronsson

Caused by: java.lang.NullPointerException at com.itemis.maven.plugins.unleash.AbstractUnleashMojo.getReleaseArgs(AbstractUnleashMojo.java:263)
One option could be to simply put a nullcheck before the log statement and log that the property has no value instead. That could have other consequences that needs to be handled.
A common use case I see is when I want to mark a build as a release build on the command line. It is more convenient to write -Drelease instead of -Drelease=true. For a varable that is treated as a boolean it is enough to check for existence in other cases it is false. Also the maven profiles match on existence of properties rather than checking if they are set to true or false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions