FHIR Chat · NullPointerException when using -source and -destination · IG creation

Stream: IG creation

Topic: NullPointerException when using -source and -destination


view this post on Zulip Pieter Edelman (Nov 23 2020 at 19:35):

I have a simple test setup with a directory containing the publisher.jar file, a subdirectory called "input" containing a bunch of StructureDefinitions and an empty output directory. When I try to run the publisher using the -source and -destination parameters, it immediately crashes with a NullPointerException:

NICT1-NB132475 ~/w/t/fhir-ig-publisher $ java -jar publisher.jar -source input -destination output
FHIR IG Publisher Version 1.1.42 (Git# 6036cc0fc6a7). Built 2020-11-13T20:16:00.666Z (9 days old)
File log: /tmp/fhir-ig-publisher-tmp.log
Detected Java version: 11.0.9 from /usr/lib/jvm/java-11-openjdk-amd64 on amd64 (64bit). 3938MB available
Parameters: -source input -destination output

[snip]

Publishing Content Failed: null                                                  (00:00.0036)
                                                                                 (00:00.0036)
Use -? to get command line help                                                  (00:00.0037)
                                                                                 (00:00.0038)
Stack Dump (for debugging):                                                      (00:00.0040)
java.lang.NullPointerException
    at org.hl7.fhir.igtools.publisher.Publisher.focusDir(Publisher.java:1483)
    at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1435)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:722)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:8373)

Am I doing something wrong? I also tried adding a -version parameter, an -ig ig.ini parameter (with an empty) file and running this under Windows, but the results are always the same.

view this post on Zulip Grahame Grieve (Dec 01 2020 at 02:15):

should be fixed next release

view this post on Zulip Pieter Edelman (Dec 02 2020 at 07:45):

Awesome, thanks!


Last updated: Apr 12 2022 at 19:14 UTC