Skip to content

Commit 745c72c

Browse files
committed
Minor improvement to location lookup
1 parent d81a602 commit 745c72c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonvalidator-common/src/main/java/eu/europa/ec/itb/json/validation/location/NodeCoordinateDetector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public String apply(String path) {
5757
if (rootNode != null && locationAwareFactory != null && StringUtils.isNotBlank(path)) {
5858
try {
5959
var relatedNode = rootNode.at(JsonPointer.compile(path));
60-
if (relatedNode != null) {
60+
if (relatedNode != null && !relatedNode.isMissingNode()) {
6161
location = locationAwareFactory.getLocationForNode(relatedNode);
6262
}
6363
} catch (RuntimeException e) {

0 commit comments

Comments
 (0)