Skip to content

Commit 20ad657

Browse files
committed
Merge branch '2.19'
2 parents b4e7b20 + 49f4dae commit 20ad657

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/main/java/tools/jackson/databind/exc/InvalidNullException.java

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package tools.jackson.databind.exc;
22

3+
import tools.jackson.core.JsonParser;
4+
35
import tools.jackson.databind.DeserializationContext;
46
import tools.jackson.databind.JavaType;
57
import tools.jackson.databind.PropertyName;
@@ -8,11 +10,9 @@
810
/**
911
* Exception thrown if a `null` value is being encountered for a property
1012
* designed as "fail on null" property (see {@link com.fasterxml.jackson.annotation.JsonSetter}).
11-
*
12-
* @since 2.9
1313
*/
1414
public class InvalidNullException
15-
extends MismatchedInputException // since 2.9
15+
extends MismatchedInputException
1616
{
1717
private static final long serialVersionUID = 1L; // silly Eclipse, warnings
1818

@@ -27,11 +27,18 @@ public class InvalidNullException
2727
/**********************************************************
2828
*/
2929

30+
/**
31+
* @since 2.19
32+
*/
33+
protected InvalidNullException(JsonParser p, String msg, PropertyName pname) {
34+
super(p, msg);
35+
_propertyName = pname;
36+
}
37+
3038
protected InvalidNullException(DeserializationContext ctxt, String msg,
3139
PropertyName pname)
3240
{
33-
super(ctxt == null ? null : ctxt.getParser(), msg);
34-
_propertyName = pname;
41+
this(ctxt == null ? null : ctxt.getParser(), msg, pname);
3542
}
3643

3744
public static InvalidNullException from(DeserializationContext ctxt,

0 commit comments

Comments
 (0)