Skip to content

Commit

Permalink
Merge pull request #3949 from Shritesh99/bugfix/3936
Browse files Browse the repository at this point in the history
Added length check for path and name of UNKNOWN File
  • Loading branch information
VishalNehra authored Oct 30, 2023
2 parents f6a23f5 + 8b6194a commit 79fe45c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ public String getParent(Context context) {
return parent;
}
default:
if (getPath().length() == getName(context).length()) {
if (getPath().length() <= getName(context).length()) {
return null;
}

Expand Down

0 comments on commit 79fe45c

Please sign in to comment.