Fix: Null-check return value of log4j.Category.getAllAppenders()
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 2 Jun 2016 09:22:13 +0000 (05:22 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 2 Jun 2016 13:20:49 +0000 (15:20 +0200)
commita548b3c1a329855ad7b2be6937a5a378419fb1b3
treee0ec5c8f7dff6a24e470e1ae1a252334f6674ccc
parent97b9093e4b2d3620049d5954738e59b807ec2050
Fix: Null-check return value of log4j.Category.getAllAppenders()

Coverity points out this can be null, null-check it to be safe.

If it in indeed null, we must still continue on to verify the
parent loggers.

Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-java-agent/java/lttng-ust-agent-log4j/org/lttng/ust/agent/log4j/LttngLog4jAgent.java
This page took 0.027378 seconds and 4 git commands to generate.