From 50b47bda90860d5ec8ff0bb9f38d22786caa01e1 Mon Sep 17 00:00:00 2001 From: yyutong <1037662939@qq.com> Date: Wed, 14 Oct 2020 18:01:56 +0800 Subject: [PATCH] Fix bugs --- src/main/java/seedu/address/model/person/UniqueExpenseList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/model/person/UniqueExpenseList.java b/src/main/java/seedu/address/model/person/UniqueExpenseList.java index 933c5de8eb1..58fd87a002b 100644 --- a/src/main/java/seedu/address/model/person/UniqueExpenseList.java +++ b/src/main/java/seedu/address/model/person/UniqueExpenseList.java @@ -168,7 +168,7 @@ public double getRemainingBudget() { public List getCategoryLabels(){ List categories = new ArrayList<>(); - for(int i = 0; i < internalList.size() -1; i++) { + for(int i = 0; i < internalList.size(); i++) { Expense current = internalList.get(i); Category currentCategory = current.getCategory(); if(!categories.contains(currentCategory)){