|
|
@ -27,7 +27,7 @@ public abstract class PathToken { |
|
|
|
if(propertyVal == JsonProvider.UNDEFINED){ |
|
|
|
if(propertyVal == JsonProvider.UNDEFINED){ |
|
|
|
if(isLeaf()) { |
|
|
|
if(isLeaf()) { |
|
|
|
if(ctx.options().contains(Option.DEFAULT_PATH_LEAF_TO_NULL)){ |
|
|
|
if(ctx.options().contains(Option.DEFAULT_PATH_LEAF_TO_NULL)){ |
|
|
|
propertyVal = ctx.jsonProvider().createNull(); |
|
|
|
propertyVal = null; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if(ctx.options().contains(Option.SUPPRESS_EXCEPTIONS)){ |
|
|
|
if(ctx.options().contains(Option.SUPPRESS_EXCEPTIONS)){ |
|
|
|
return; |
|
|
|
return; |
|
|
@ -38,7 +38,6 @@ public abstract class PathToken { |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
throw new PathNotFoundException(); |
|
|
|
throw new PathNotFoundException(); |
|
|
|
//return;
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (isLeaf()) { |
|
|
|
if (isLeaf()) { |
|
|
@ -58,7 +57,7 @@ public abstract class PathToken { |
|
|
|
Object propertyVal = readObjectProperty(property, model, ctx); |
|
|
|
Object propertyVal = readObjectProperty(property, model, ctx); |
|
|
|
if(propertyVal == JsonProvider.UNDEFINED){ |
|
|
|
if(propertyVal == JsonProvider.UNDEFINED){ |
|
|
|
if(ctx.options().contains(Option.DEFAULT_PATH_LEAF_TO_NULL)){ |
|
|
|
if(ctx.options().contains(Option.DEFAULT_PATH_LEAF_TO_NULL)){ |
|
|
|
propertyVal = ctx.jsonProvider().createNull();; |
|
|
|
propertyVal = null; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|