jarslab / babel-maven-plugin

Babel transcription plugin for Maven
MIT License
25 stars 8 forks source link

NullPointerException when "prefix" isn't specified #4

Closed php-coder closed 5 years ago

php-coder commented 5 years ago

While README says that "prefix" is optional

prefix - optional prefix applied for every translated file,

in fact it doesn't because it defaults to null and fails with NPE in TargetFileWriter:

Caused by: java.lang.NullPointerException
    at java.util.Objects.requireNonNull (Objects.java:203)
    at com.jarslab.maven.babel.plugin.TargetFileWriter.<init> (TargetFileWriter.java:23)
    at com.jarslab.maven.babel.plugin.BabelMojo.execute (BabelMojo.java:58)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
milpol commented 5 years ago

Right, default for parameters wasn't applied as I expected. Fixed in d35e9d1.