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 | 70 | public Logger create(final InjectionPoint ip) { |
71 | 71 | Class<?> type; |
72 | 72 | |
73 | - if (ip.getMember() != null) { | |
73 | + if (ip != null && ip.getMember() != null) { | |
74 | 74 | type = ip.getMember().getDeclaringClass(); |
75 | 75 | } else { |
76 | 76 | type = LoggerProducer.class; | ... | ... |