]
George Gastaldi updated FURNACE-59:
-----------------------------------
Steps to Reproduce:
{code}
git clone
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).
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)