Skip to content

Comments

commit for FINERACT-52 (Null value not handled in 'ClientWritePlatformServiceJpaRepositoryImpl.CloseClient' date comparison)#176

Merged
vishwasbabu merged 1 commit intoapache:developfrom
emmanuelnnaa:FINERACT-52
Feb 26, 2019
Merged

commit for FINERACT-52 (Null value not handled in 'ClientWritePlatformServiceJpaRepositoryImpl.CloseClient' date comparison)#176
vishwasbabu merged 1 commit intoapache:developfrom
emmanuelnnaa:FINERACT-52

Conversation

@emmanuelnnaa
Copy link
Contributor

No description provided.

…mServiceJpaRepositoryImpl.CloseClient' date comparison)
}

if (client.isNotPending() && client.getActivationLocalDate().isAfter(closureDate)) {
if (client.isNotPending() && client.getActivationLocalDate() != null && client.getActivationLocalDate().isAfter(closureDate)) {
Copy link
Contributor

@nazeer1100126 nazeer1100126 Jul 29, 2016

Choose a reason for hiding this comment

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

Instead of checking activation date to null why can't we add a check if client status is active and client activation date is after closure date as error message is about closure date can not be before activation date?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nazeer1100126
There's no guarantee that the "activationDate" property of all clients will have a value other than NULL or an empty string. During migration of a new tenant, some data might be missed. Moreover, it is good practice to carry out such checks to avoid null pointer exceptions.

@vorburger
Copy link
Member

@emmanuelnnaa thank you very much for your interest in Mifos! I'm an (old) volunteer who got reminded of Mifos this week-end at the FOSDEM conference, and I'm taking a moment to help the project clean up some of it's old issues and pull requests etc.

We were wondering whether you are still alive, and would be willing to rebase this PR and take any previous review feedback into account? If we don't hear from you within 2 weeks, we will take the liberty to close this PR, to avoid confusion for future new contributors looking at this repository - hope you understand and that's fair.

@vorburger
Copy link
Member

Friendly service reminder: I will close this PR in 3 days to help this project have a clean list of active PRs.

@vishwasbabu vishwasbabu merged commit 6615613 into apache:develop Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants