NPE with bad name

Description

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:

+ 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

Activity

Show:

Nathan Voxland January 5, 2015 at 8:43 PM

Improved the error message

Fixed

Details

Reporter

Components

Fix versions

Affects versions

Priority

Created December 28, 2014 at 8:12 PM
Updated January 5, 2015 at 8:43 PM
Resolved January 5, 2015 at 8:43 PM

Flag notifications