Rendering output may be null when written to file
MODIFY
asciidoctorj-core/src/main/java/org/asciidoctor/jruby/cli/AsciidoctorInvoker.java
asciidoctorj-core/src/main/java/org/asciidoctor/jruby/cli/AsciidoctorInvoker.java
@@ -78,7 +78,7 @@ public class AsciidoctorInvoker {
timings.callMethod(JRubyRuntimeContext.get(asciidoctor).getCurrentContext(), "print_report");
}
- if (!"".equals(output.trim())) {
+ if (output != null && !"".equals(output.trim())) {
System.out.println(output);
}
}

Rendering output may be null when written to file