When trying to use the file in C:\Windows\System32, it does not catch for an error if files cannot be created in the location specified.
Log Output:
PS C:\Windows\System32> java -jar .\[CS2113T-F11-2][BudgetTracker].jar
========================================================
Current Date and Time: 16:42 12/11/2021
Database will be set to: 2021
========================================================
If you would like to change the database, please use the "year DATABASE_YEAR" command
Loading... Please Wait
========================================================
========================================================
____ _ _ _______ _
| _ \ | | | |__ __| | |
| |_) |_ _ __| | __ _ ___| |_ | |_ __ __ _ ___| | _____ _ __
| _ <| | | |/ _` |/ _` |/ _ \ __|| | '__/ _` |/ __| |/ / _ \ '__|
| |_) | |_| | (_| | (_| | __/ |_ | | | | (_| | (__| < __/ |
|____/ \__,_|\__,_|\__, |\___|\__||_|_| \__,_|\___|_|\_\___|_|
__/ |
|___/
Hello! I'm Budget Tracker
What entries do you wish to enter today?
========================================================
java.io.IOException: The system cannot find the path specified
at java.base/java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.base/java.io.File.createNewFile(File.java:1035)
at seedu.budgettracker.storage.Storage.makeStorageTextFile(Storage.java:76)
at seedu.budgettracker.BudgetTracker.run(BudgetTracker.java:53)
at seedu.budgettracker.BudgetTracker.main(BudgetTracker.java:31)
Parameter is not an existing file
You have a total budget of: $0.00
You have a spent a total of: $0.00
========================================================
========================================================
These are the data base you currently have!
Exception in thread "main" java.lang.NullPointerException
at seedu.budgettracker.storage.Storage.isContainsJunk(Storage.java:131)
at seedu.budgettracker.storage.Storage.directoryListAllFiles(Storage.java:106)
at seedu.budgettracker.ui.TextUi.printAvailableDataBase(TextUi.java:633)
at seedu.budgettracker.BudgetTracker.run(BudgetTracker.java:70)
at seedu.budgettracker.BudgetTracker.main(BudgetTracker.java:31)
System32 is not meant for us to use it as a workspace directory. Our document also stated that you must create an exception in your anti-virus if you have one.
When trying to use the file in
C:\Windows\System32
, it does not catch for an error if files cannot be created in the location specified.Log Output:
[original: nus-cs2113-AY2122S1/pe-interim#133] [original labels: severity.VeryLow type.FunctionalityBug]