[
https://issues.jboss.org/browse/FURNACE-59?page=com.atlassian.jira.plugin...
]
Ondrej Zizka updated FURNACE-59:
--------------------------------
Description:
Annotations.getAnnotation, under some condition, doesn't check the input and throws a
NPE.
Looks like it happens when there's no declaring class for an annotation type (not
sure how that can happen).
{code:java}
testInvalidTypeGet(org.jboss.windup.config.selectables.VariablesTest) Time elapsed: 0.086
sec <<< ERROR!
java.lang.NullPointerException: null
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
at
org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
at org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
{code}
was:
Annotations.getAnnotation, under some condition, doesn't check the input and throws a
NPE. Looks like it happens when there's no declaring class for an annotation type (not
sure how that can happen).
{code:java}
testInvalidTypeGet(org.jboss.windup.config.selectables.VariablesTest) Time elapsed: 0.086
sec <<< ERROR!
java.lang.NullPointerException: null
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
at
org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
at org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
{code}
NPE in Furnace Annotations.getAnnotation()
------------------------------------------
Key: FURNACE-59
URL:
https://issues.jboss.org/browse/FURNACE-59
Project: Forge: Furnace
Issue Type: Bug
Environment: My dev commit f397ea646
Reporter: Ondrej Zizka
Fix For: 2.x Future
Annotations.getAnnotation, under some condition, doesn't check the input and throws a
NPE.
Looks like it happens when there's no declaring class for an annotation type (not
sure how that can happen).
{code:java}
testInvalidTypeGet(org.jboss.windup.config.selectables.VariablesTest) Time elapsed:
0.086 sec <<< ERROR!
java.lang.NullPointerException: null
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
at
org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
at
org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)