Woa, trippy, I thought I had fixed that one a while back. I must have lost
it in one of my repo shuffles. Thank you Matt!

Gary

Forwarded message ----------
From: <[email protected]>
Date: Sat, Oct 24, 2015 at 9:14 PM
Subject: [1/2] logging-log4j2 git commit: Fix LOG4J2-1157
To: [email protected]


Repository: logging-log4j2
Updated Branches:
  refs/heads/master 62259c9e9 -> 365e427f4


Fix LOG4J2-1157


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit:
http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/afb7e250
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/afb7e250
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/afb7e250

Branch: refs/heads/master
Commit: afb7e250f570c423ac5ee0950ab88b244ab6b5db
Parents: 62259c9
Author: Matt Sicker <[email protected]>
Authored: Sat Oct 24 23:12:32 2015 -0500
Committer: Matt Sicker <[email protected]>
Committed: Sat Oct 24 23:12:32 2015 -0500

----------------------------------------------------------------------
 .../log4j/core/config/plugins/processor/PluginProcessor.java      | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/afb7e250/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/processor/PluginProcessor.java
----------------------------------------------------------------------
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/processor/PluginProcessor.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/processor/PluginProcessor.java
index d759dd9..fe575b7 100644
---
a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/processor/PluginProcessor.java
+++
b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/processor/PluginProcessor.java
@@ -92,6 +92,9 @@ public class PluginProcessor extends AbstractProcessor {
                 elementUtils);
         for (final Element element : elements) {
             final Plugin plugin = element.getAnnotation(Plugin.class);
+            if (plugin == null) {
+                continue;
+            }
             final PluginEntry entry = element.accept(pluginVisitor,
plugin);
             final Map<String, PluginEntry> category =
pluginCache.getCategory(entry.getCategory());
             category.put(entry.getKey(), entry);




-- 
E-Mail: [email protected] | [email protected]
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to