Skip to content

Commit

Permalink
Merge 5d4999d into 0d43e37
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelnnk committed Apr 11, 2020
2 parents 0d43e37 + 5d4999d commit b1ee701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/logic/parser/ParserUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public static Path parseCsvFilePath(String csvFilePath) throws ParseException {
requireNonNull(csvFilePath);
String trimmedCsvFilePath = csvFilePath.trim();

if (!FileUtil.isValidPath(csvFilePath)) {
if (!FileUtil.isValidPath(trimmedCsvFilePath) || trimmedCsvFilePath.length() < 5) {
throw new ParseException(MESSAGE_INVALID_FILEPATH);
}

Expand Down

0 comments on commit b1ee701

Please sign in to comment.