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:21:34 +0000 (15:21 +0200)
commit98296cd1cc5e479d5b6e382307c0a6c8ccac142f
treebbebdf8818e1d4a31f2c6c60f6f5567b201b899a
parentb4d108aae36c43b6870be96fd9da73228f57e1c4
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.024663 seconds and 4 git commands to generate.