Skip to content

Commit

Permalink
BL-1137
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw429s committed Feb 27, 2025
1 parent da08d58 commit 4638030
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/ortus/boxlang/runtime/util/FileSystemUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,9 @@ public static ResolvedFilePath expandPath( IBoxContext context, String path, Res
// If the incoming path does NOT start with a /, then we make it relative to the current template (if there is one)
if ( !isAbsolute && !path.startsWith( SLASH_PREFIX ) ) {
if ( basePath != null ) {
Path template = basePath.absolutePath();
if ( template != null ) {
// There are codepaths where ad-hoc source code has a source path of "unknown". That's not really ideal, but
// if we try to process this, we'll get crazy errors.
if ( basePath.absolutePath() != null && !basePath.absolutePath().toString().equals( "unknown" ) ) {
return basePath.newFromRelative( path );
}
}
Expand Down

0 comments on commit 4638030

Please # to comment.