Closed arpit-pp closed 4 years ago
@arpit-pp Ok, looking at code, I think that Guava module should not pass null
as accessor (Field, Method), and will see if that can be fixed.
But I would suggest also filing an issue for DropWizard since it may make sense to add a workaround there to work around the issue -- this avoids issues when used with existing Jackson versions.
One challenge here is that the default Jackson PropertyNamingStrategy
makes no use of accessor, and hence is not affected by Guava module's call with null
.
I'm using Dropwizard which automatically configures Jackson at startup using the following code:
Guava's
RangeHelper
is callingAnnotationSensitivePropertyNamingStrategy.nameForField
with null value forAnnotatedField
param which is resulting in an NPE.Stacktrace: