From: Michael Jeanson Date: Fri, 28 Jan 2022 18:58:12 +0000 (+0000) Subject: fix: coverity reported null returns in Log4j2 agent X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=8063c7b022fdde06813466a21c0fcfc2d8206b56;hp=8063c7b022fdde06813466a21c0fcfc2d8206b56;p=lttng-ust.git fix: coverity reported null returns in Log4j2 agent According to the log4j javadoc, these methods should not return null but since it's reported by Coverity, add the null checks. *** CID 1469124: Null pointer dereferences (NULL_RETURNS) src/lib/lttng-ust-java-agent/java/lttng-ust-agent-log4j2/org/lttng/ust/agent/log4j2/LttngLogAppender.java: 194 in org.lttng.ust.agent.log4j2.LttngLogAppender.append(org.apache.logging.log4j.core.LogEvent)() *** CID 1469123: Null pointer dereferences (NULL_RETURNS) src/lib/lttng-ust-java-agent/java/lttng-ust-agent-log4j2/org/lttng/ust/agent/log4j2/LttngLogAppender.java: 167 in org.lttng.ust.agent.log4j2.LttngLogAppender.append(org.apache.logging.log4j.core.LogEvent)() Change-Id: Ib992b3cc6848492cfb6e7d8fec6ce3898d962db4 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers ---