Skip to content

Commit

Permalink
Added length check for path and name of UNKNOWN File
Browse files Browse the repository at this point in the history
  • Loading branch information
Shritesh99 committed Oct 5, 2023
1 parent 6783e4d commit 8b6194a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,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 8b6194a

Please sign in to comment.