Skip to content

Commit

Permalink
fix #186
Browse files Browse the repository at this point in the history
  • Loading branch information
hyb1996 authored and gbrail committed Oct 9, 2018
1 parent dfddfec commit 2455413
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ private int getErrorCode(IOException ioe)
} else if (ioe instanceof NoSuchFileException) {
code = ErrorCodes.ENOENT;
} else if ((ioe instanceof NotDirectoryException) ||
NOT_DIRECTORY_MSG.matcher(msg).matches()) {
(msg != null && NOT_DIRECTORY_MSG.matcher(msg).matches())) {
code = ErrorCodes.ENOTDIR;
} else if (ioe instanceof NotLinkException) {
code = ErrorCodes.EINVAL;
Expand Down

0 comments on commit 2455413

Please sign in to comment.