Skip to content

PathTool.getRelativeFilePath returns null instead of empty string for cross-drive paths #402

Description

@elharo

PathTool.getRelativeFilePath() returns null for Windows cross-drive scenarios (lines 167 and 174) instead of "" (empty string). The method's Javadoc shows "" for null/empty inputs, and callers may not expect null.

Fix: change the two return null to return "".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions