You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling an inline template and supplying a custom Writer to the Template.apply method, an unexpected IllegalArgumentException can be thrown with the message "The error's column number must be greater than zero".
java.lang.IllegalArgumentException: The error's column number must be greater than zero
at org.apache.commons.lang3.Validate.isTrue(Validate.java:158)
at com.github.jknack.handlebars.HandlebarsError.<init>(HandlebarsError.java:79)
at com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:135)
at com.github.jknack.handlebars.internal.ForwardingTemplate.apply(ForwardingTemplate.java:58)
at HandlebarsTester.main(HandlebarsTester.java:115)
Yes the nullWriter is not interesting and would not be used in practice, but it conveniently displays the issue. (One could imagine that the the real custom Writer ran out of space, or could not emit to a file, or was unable to send to a socket, etc.) The point is that this IllegalArgumentException should probably not be thrown when something unexpected happens with the Writer.
The text was updated successfully, but these errors were encountered:
When compiling an inline template and supplying a custom
Writer
to theTemplate.apply
method, an unexpectedIllegalArgumentException
can be thrown with the message "The error's column number must be greater than zero".This produces the following stack trace:
Yes the
null
Writer
is not interesting and would not be used in practice, but it conveniently displays the issue. (One could imagine that the the real custom Writer ran out of space, or could not emit to a file, or was unable to send to a socket, etc.) The point is that thisIllegalArgumentException
should probably not be thrown when something unexpected happens with the Writer.The text was updated successfully, but these errors were encountered: