From 5567781eeb33f8a4f622df74e3a819d0df7edc48 Mon Sep 17 00:00:00 2001 From: "sergio.vieri" Date: Sun, 27 Jan 2019 18:44:43 +0800 Subject: [PATCH] Fix file path in saving persons --- src/seedu/addressbook/AddressBook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/seedu/addressbook/AddressBook.java b/src/seedu/addressbook/AddressBook.java index 5a158b67..2b3e3db7 100644 --- a/src/seedu/addressbook/AddressBook.java +++ b/src/seedu/addressbook/AddressBook.java @@ -763,7 +763,7 @@ private static ArrayList getLinesInFile(String filePath) { private static void savePersonsToFile(ArrayList persons, String filePath) { final ArrayList linesToWrite = encodePersonsToStrings(persons); try { - Files.write(Paths.get(storageFilePath), linesToWrite); + Files.write(Paths.get(filePath), linesToWrite); } catch (IOException ioe) { showToUser(String.format(MESSAGE_ERROR_WRITING_TO_FILE, filePath)); exitProgram();