karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject [2/3] karaf git commit: [KARAF-5016] Fix another possible NPE
Date Mon, 03 Apr 2017 08:39:08 GMT
[KARAF-5016] Fix another possible NPE

Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/689616a7
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/689616a7
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/689616a7

Branch: refs/heads/master
Commit: 689616a7680a0746ce0cbd8a28ff7661ba3ed0de
Parents: 4f18c5b
Author: Guillaume Nodet <gnodet@apache.org>
Authored: Mon Apr 3 10:23:20 2017 +0200
Committer: Guillaume Nodet <gnodet@apache.org>
Committed: Mon Apr 3 10:23:20 2017 +0200

----------------------------------------------------------------------
 .../org/apache/karaf/log/core/internal/layout/PatternParser.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/689616a7/log/src/main/java/org/apache/karaf/log/core/internal/layout/PatternParser.java
----------------------------------------------------------------------
diff --git a/log/src/main/java/org/apache/karaf/log/core/internal/layout/PatternParser.java
b/log/src/main/java/org/apache/karaf/log/core/internal/layout/PatternParser.java
index a3abad8..5e26d13 100644
--- a/log/src/main/java/org/apache/karaf/log/core/internal/layout/PatternParser.java
+++ b/log/src/main/java/org/apache/karaf/log/core/internal/layout/PatternParser.java
@@ -480,6 +480,8 @@ public class PatternParser {
     public
     String convert(PaxLoggingEvent event) {
       String n = getFullyQualifiedName(event);
+      if (n == null)
+	    return null;
       if(precision <= 0)
 	return n;
       else {


Mime
View raw message