NPE in LogService.pushContext for MDCs that don't allow null values

Description

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:460)
at org.apache.log4j.MDC.put0(MDC.java:150)
at org.apache.log4j.MDC.put(MDC.java:85)
at org.slf4j.impl.Log4jMDCAdapter.put(Log4jMDCAdapter.java:67)
at org.slf4j.MDC.put(MDC.java:147)
at liquibase.logging.core.Slf4jLoggerContext.<init>(Slf4jLoggerContext.java:11)
at liquibase.logging.core.Slf4JLoggerFactory.pushContext(Slf4JLoggerFactory.java:14)
at liquibase.logging.LogService.pushContext(LogService.java:48)
at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:53)
at liquibase.Liquibase.rollback(Liquibase.java:714)
at liquibase.Liquibase.rollback(Liquibase.java:686)
at liquibase.Liquibase.rollback(Liquibase.java:673)

Environment

compile "org.slf4j:slf4j-log4j12:1.7.25"
compile("org.liquibase:liquibase-core:3.6.1") {
exclude module: "logback-classic"
}

Status

Assignee

Unassigned

Reporter

Nathan Niesen

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure