Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
Fix assertions fixer for empty paths
Browse files Browse the repository at this point in the history
  • Loading branch information
steijgeler authored and pieterbos committed Aug 17, 2017
1 parent b8f6148 commit 7b47589
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,13 @@ private String stripLastPathSegment(String path) {
if(lastIndex < 0) {
return path;
}
return path.substring(0, lastIndex);

String result = path.substring(0, lastIndex);
if( result.equals("")) {
return "/";
}

return result;
}

/**
Expand Down

0 comments on commit 7b47589

Please sign in to comment.