NPE with bad name

Description

1 2 3 4 5 6 7 8 9 10 11 12 13 14 SEVERE 12/28/14 3:05 PM: liquibase: Unknown Reason liquibase.exception.ChangeLogParseException: java.lang.NullPointerException at liquibase.parser.core.yaml.YamlChangeLogParser.parse(YamlChangeLogParser.java:105) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:215) at liquibase.Liquibase.update(Liquibase.java:192) at liquibase.Liquibase.update(Liquibase.java:258) at liquibase.integration.commandline.Main.doMigration(Main.java:1046) at liquibase.integration.commandline.Main.run(Main.java:177) at liquibase.integration.commandline.Main.main(Main.java:96) Caused by: java.lang.NullPointerException at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:243) at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:211) at liquibase.parser.core.yaml.YamlChangeLogParser.parse(YamlChangeLogParser.java:98) ... 6 more

This occurs when the user makes a stupid mistake, and says "path" instead of "file" for the "include" attribute.

Here's the diff that fixed my changelog:

1 2 + file: changes/twitter_auth.yaml - path: changes/twitter_auth.yaml

It'd be nice if the error message was more friendly about missing the "file" attribute.

Environment

OS-X

Status

Assignee

Unassigned

Reporter

Robert Fischer

Labels

None

Components

Fix versions

Affects versions

3.3.0

Priority

Minor