You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that CtExecutableReferenceImpl#getDeclaration may throw a NullPointerException in noclasspath mode. Unfortunately, I can not provide a short example but it definitely occurs. The following snippet shows it's implementation:
As we can see, getDeclaration calls getDeclaringType() which, according to it's JavaDoc, may return null. By calling getDeclaringType().getDeclaration() a NullPointerException is throws if getDeclaringType() is null.
The text was updated successfully, but these errors were encountered:
According to JavaDoc, `getDeclaringType()` may return null. Until now,
`getDeclaration`, does not handle the null case and, therefore, may
throw a NullPointerException. This exception is throws most likely in
noclasspath mode. FixesINRIA#808.
I found that
CtExecutableReferenceImpl#getDeclaration
may throw aNullPointerException
in noclasspath mode. Unfortunately, I can not provide a short example but it definitely occurs. The following snippet shows it's implementation:As we can see,
getDeclaration
callsgetDeclaringType()
which, according to it's JavaDoc, may returnnull
. By callinggetDeclaringType().getDeclaration()
aNullPointerException
is throws ifgetDeclaringType()
isnull
.The text was updated successfully, but these errors were encountered: