ebullient / ttrpg-convert-cli

Utility to convert JSON data (for content you own) from 5etools or pf2etools into Obsidian-friendly Markdown.
https://www.ebullient.dev/projects/ttrpg-convert-cli/
Apache License 2.0
196 stars 39 forks source link

🐛 An error occurred: NullPointerException. #565

Open Dawe5ome opened 1 week ago

Dawe5ome commented 1 week ago

config-file-name.json ttrpg-convert.out.txt

When running the CLI i constantly get presented with the NullPointerException error. I have been using 5etools-2014-src and 5etools-2014-img

Run with --debug for details.

It should properly extract everything like mentioned at step 2.

This is what I always get.

C:\CLI\5eTools\bin>ttrpg-convert --index -o dm 5etools-mirror-3.github.io [ ✅ OK] Finished reading config. ⏱️ Reading C:\CLI\5eTools\bin\5etools-mirror-3.github.io [🔸 WARN] Could not find title for OptionalFeatureType: TT from unknown/core [ ✅ OK] Finished reading data. [ 🛑 ERR] An error occurred: NullPointerException.

Run with --debug for details.

Configuration

Sources:

sundeer commented 9 hours ago

same here

Here is the full debug trace

    at dev.ebullient.convert.tools.dnd5e.Tools5eJsonSourceCopier.doModProp(Tools5eJsonSourceCopier.java:322)
    at dev.ebullient.convert.tools.JsonSourceCopier.doModProp(JsonSourceCopier.java:185)
    at dev.ebullient.convert.tools.JsonSourceCopier.doMod(JsonSourceCopier.java:151)
    at dev.ebullient.convert.tools.JsonSourceCopier.applyMods(JsonSourceCopier.java:141)
    at dev.ebullient.convert.tools.dnd5e.Tools5eJsonSourceCopier.mergeNodes(Tools5eJsonSourceCopier.java:258)
    at dev.ebullient.convert.tools.dnd5e.Tools5eJsonSourceCopier.mergeNodes(Tools5eJsonSourceCopier.java:26)
    at dev.ebullient.convert.tools.JsonSourceCopier.handleCopy(JsonSourceCopier.java:73)
    at dev.ebullient.convert.tools.dnd5e.Tools5eIndex.prepare(Tools5eIndex.java:417)
    at dev.ebullient.convert.RpgDataConvertCli.call(RpgDataConvertCli.java:238)
    at dev.ebullient.convert.RpgDataConvertCli.call(RpgDataConvertCli.java:39)
    at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
    at picocli.CommandLine.access$1500(CommandLine.java:148)
    at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
    at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
    at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
    at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
    at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
    at dev.ebullient.convert.RpgDataConvertCli.executionStrategy(RpgDataConvertCli.java:273)
    at picocli.CommandLine.execute(CommandLine.java:2174)
    at dev.ebullient.convert.RpgDataConvertCli.run(RpgDataConvertCli.java:285)
    at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:132)
    at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
    at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
    at io.quarkus.runner.GeneratedMain.main(Unknown Source)