Skip to content

Commit

Permalink
Avoid NPE
Browse files Browse the repository at this point in the history
(applying suggestion from code review)

Co-authored-by: Sören Domrös <[email protected]>
  • Loading branch information
skieffer and soerendomroes authored Aug 26, 2024
1 parent 1cdd859 commit b1a02bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,10 @@ final class JsonImporter {
do {
if (ancestor !== null) {
ecm = ancestor.getProperty(CoreOptions.JSON_EDGE_COORDS) ?: EdgeCoords.INHERIT
ancestor = ancestor.getParent
} else {
ecm = EdgeCoords.CONTAINER
}
ancestor = ancestor.getParent
} while (ecm === EdgeCoords.INHERIT)
return ecm
}
Expand Down

0 comments on commit b1a02bc

Please sign in to comment.