Re: [jackson-user] NPE with JsonIdentityReference and serializer modifier

2018-05-17 Thread Tatu Saloranta
On Wed, May 16, 2018 at 11:35 PM, wrote: > Using 2.7.4 I tried to use a BeanSerializerModifier to avoid serialization > of beans meeting some condition. First things first: as usual, it is good idea to always verify with the last patch version of the minor version (2.7.9 in

[jackson-user] NPE with JsonIdentityReference and serializer modifier

2018-05-17 Thread tappe
Using 2.7.4 I tried to use a BeanSerializerModifier to avoid serialization of beans meeting some condition. This works fine. But using also identity references I run into a NullPointerException: at com.fasterxml.jackson.databind.ser.impl.WritableObjectId.writeAsField( WritableObjectId.java:64)