This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 6f282e6b0dbd4f587570c591e6cd1159a7f81aff
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Mon Mar 21 12:10:57 2022 +0100

    Fix code typo in ThrowableInformation of log4j-1.2-api.
---
 .../src/main/java/org/apache/log4j/spi/ThrowableInformation.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/log4j-1.2-api/src/main/java/org/apache/log4j/spi/ThrowableInformation.java 
b/log4j-1.2-api/src/main/java/org/apache/log4j/spi/ThrowableInformation.java
index 2b46dd5..6726e00 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/spi/ThrowableInformation.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/spi/ThrowableInformation.java
@@ -53,7 +53,7 @@ public class ThrowableInformation implements Serializable {
      * @param r String representation of throwable.
      */
     public ThrowableInformation(final String[] r) {
-        this.rep = rep != null ? r.clone() : null;
+        this.rep = r != null ? r.clone() : null;
     }
 
     /**

Reply via email to