Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect assertions in DashboardData #211

Conversation

marcus-ny
Copy link

@marcus-ny marcus-ny commented Apr 14, 2024

DashboardData's constructor throws an IllegalArgumentException even though the date is not overdue. This is caused by having a loan in the database that is due on the same day as today.

The throw IllegalArgumentException has been removed as we can ensure that the value passed into the constructor is always valid.

@marcus-ny marcus-ny added this to the v1.4 milestone Apr 14, 2024
@marcus-ny marcus-ny added priority.High Must do severity.High A major flaw that can potentially break the app labels Apr 14, 2024
@marcus-ny marcus-ny self-assigned this Apr 14, 2024
Copy link

@Joseph31416 Joseph31416 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@Joseph31416 Joseph31416 merged commit 5d7907f into AY2324S2-CS2103T-W13-1:master Apr 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.High Must do severity.High A major flaw that can potentially break the app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants