Commit 5e8058d9ad46811ac7aa225dc3fad52e4afb870b
1 parent
a3c6cf6b
Exists in
master
Resolvido bug de NullPointerException quando InjectionPoint do produtor
é nulo.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/producer/LoggerProducer.java
@@ -70,7 +70,7 @@ public class LoggerProducer implements Serializable { | @@ -70,7 +70,7 @@ public class LoggerProducer implements Serializable { | ||
70 | public Logger create(final InjectionPoint ip) { | 70 | public Logger create(final InjectionPoint ip) { |
71 | Class<?> type; | 71 | Class<?> type; |
72 | 72 | ||
73 | - if (ip.getMember() != null) { | 73 | + if (ip != null && ip.getMember() != null) { |
74 | type = ip.getMember().getDeclaringClass(); | 74 | type = ip.getMember().getDeclaringClass(); |
75 | } else { | 75 | } else { |
76 | type = LoggerProducer.class; | 76 | type = LoggerProducer.class; |