Skip to content

Commit

Permalink
Improved handling of an edge case around the fallback resolver.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodinaarssen committed Dec 16, 2024
1 parent aea1af5 commit 9e1edde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/rascalmpl/uri/URIResolverRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ private ISourceLocation physicalLocation(ISourceLocation loc) throws IOException
loc = original;
}
if (fallbackLogicalResolver != null) {
var fallbackResult = resolveAndFixOffsets(loc == null ? original : loc, fallbackLogicalResolver, Collections.emptyList());
var fallbackResult = resolveAndFixOffsets(loc, fallbackLogicalResolver, Collections.emptyList());

Check warning on line 409 in src/org/rascalmpl/uri/URIResolverRegistry.java

View check run for this annotation

Codecov / codecov/patch

src/org/rascalmpl/uri/URIResolverRegistry.java#L409

Added line #L409 was not covered by tests
return fallbackResult == null ? loc : fallbackResult;
}
return loc;
Expand Down

0 comments on commit 9e1edde

Please sign in to comment.