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: NPE on generating Individual collectionsheet #733

Merged
merged 1 commit into from
Mar 7, 2018

Conversation

tarun0
Copy link
Member

@tarun0 tarun0 commented Aug 1, 2017

Fix #732

  • Apply the MifosStyle.xml style template to your code in Android Studio.

  • Run the unit tests with ./gradlew check to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

@tarun0
Copy link
Member Author

tarun0 commented Aug 6, 2017

@therajanmaurya I've updated the PR as suggested by @droidchef

@@ -252,10 +252,12 @@ public void call(PaymentTypeOptions paymentTypeOption) {
.subscribe(new Action1<ClientCollectionSheet>() {
@Override
public void call(ClientCollectionSheet client) {
Copy link
Member

Choose a reason for hiding this comment

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

Why is the ClientCollectionSheet object called client here ?

Copy link
Member Author

Choose a reason for hiding this comment

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

ClientCollectionSheet object refers to the Client specific for CollectionSheet. Since there were already some Client models, I named this one which is specific to the CollectionSheet, as ClientCollectionSheet. That's why I named the variable client.

@@ -14,6 +15,7 @@
private int clientId;
private String clientName;

@Nullable
private ArrayList<LoanCollectionSheet> loans;
Copy link
Member

Choose a reason for hiding this comment

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

Why is the LoanCollectionSheet List called loans here ?

Copy link
Member Author

Choose a reason for hiding this comment

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

LoanCollectionSheet refers to the Loan related to the CollectionSheet. Again, like ClientCollectionSheet, I named this so to discern it from the normal Loans. It's called loans as this is the identifier which is received in the JSON response.

@tarun0 tarun0 force-pushed the ind_fix branch 2 times, most recently from ebbd3a0 to d5be048 Compare August 11, 2017 07:45
@tarun0
Copy link
Member Author

tarun0 commented Aug 11, 2017

@droidchef I updated the PR with appropriate variable names.

@therajanmaurya
Copy link
Member

@tarun0 Please fix the conflicts

@tarun0
Copy link
Member Author

tarun0 commented Aug 27, 2017

@therajanmaurya Fixed.

@therajanmaurya therajanmaurya merged commit c71525c into openMF:master Mar 7, 2018
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.

3 participants