CommandLineUtils::getBanner fails if manifest entries are missing

Description

If Liquibase is run from a JAR file, but the Bundle-Version or Build-Time properties are omitted from the manifest, running the command line class (liquibase.integration.commandline.Main) results in a NullPointerException.

The existing code attempts to handle cases where these manifest entries are present but empty (i.e. ""), but does not handle the null case. The fix is trivial; I'll submit a pull request.

Environment

Our build environment creates a fat JAR, but in doing so replaces the META-INF/MANIFEST.MF contents.

Status

Assignee

Unassigned

Reporter

Wes Biggs

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure