- Avoid an NPE on properties.
This commit is contained in:
Juan Martín Sotuyo Dodero
2023-04-18 20:15:48 -03:00
parent 1789014dc6
commit c54bd846b4

View File

@ -75,7 +75,7 @@ public class TreeExportCommand extends AbstractPmdSubcommand {
@Option(names = "-P", description = "Key-value pair defining a property for the report format.%n"
+ "Supported values for each report format:%n${sys:pmd-cli.tree-export.report.properties.help}",
completionCandidates = TreeExportReportPropertiesCandidates.class)
private Properties properties;
private Properties properties = new Properties();
@Option(names = "--file", description = "The file to parse and dump.")
private Path file;