Skip to content

Commit ba8683f

Browse files
committed
...
1 parent dc6ccaf commit ba8683f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/com/fasterxml/jackson/databind/ser/filter/JsonIncludeCustomTest.java

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ public void testRepeatedCalls() throws Exception
118118

119119
// but beyond initial extra call, as expected
120120
assertEquals(3, CountingFooFilter.counter.get());
121+
122+
// except filter will NOT be called again for `null`s, as per [databind#3481]
123+
assertEquals(a2q("{'value':null}"), MAPPER.writeValueAsString(new CountingFooBean(null)));
124+
assertEquals(3, CountingFooFilter.counter.get());
121125
}
122126

123127
/*

0 commit comments

Comments
 (0)