Skip to content

Invalid vanillatweaks JSON throws NullPointerException #163

@ytterx

Description

@ytterx

I was trying to use the vanillatweaks integration for the minecraft docker instance that I am setting up and noticed the example was not working.

I got the following error:
java.lang.NullPointerException: Cannot invoke "me.itzg.helpers.vanillatweaks.model.Type.toString()" because the return value of "me.itzg.helpers.vanillatweaks.model.PackDefinition.getType()" is null

The example was missing the "type" and "result" fields, but it might be better if the file was validated first before trying to use it to prevent confusion and guide users to the problem.

See also itzg/docker-minecraft-server#2013

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions