You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2016/10/24 08:08:15 UTC
[04/50] [abbrv] logging-log4j2 git commit: [LOG4J2-1619] new
Log4jLogEvent().toString() throws an NPE.
[LOG4J2-1619] new Log4jLogEvent().toString() throws an NPE.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/83cd00eb
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/83cd00eb
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/83cd00eb
Branch: refs/heads/LOG4J2-1390
Commit: 83cd00eb611b9715c3a95961ad44b3ce4c69b5a4
Parents: e6781f5
Author: Gary Gregory <gg...@apache.org>
Authored: Wed Sep 28 16:14:15 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Wed Sep 28 16:14:15 2016 -0700
----------------------------------------------------------------------
.../org/apache/logging/log4j/core/impl/Log4jLogEventTest.java | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/83cd00eb/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java
index 0199444..9f079ce 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java
@@ -521,4 +521,10 @@ public class Log4jLogEventTest {
assertNotEquals(reason, other, event);
assertNotEquals(reason + " hashCode", other.hashCode(), event.hashCode());
}
+
+ @Test
+ public void testToString() {
+ // Throws an NPE in 2.6.2
+ assertNotNull(new Log4jLogEvent().toString());
+ }
}