-
Notifications
You must be signed in to change notification settings - Fork 604
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
Conversation
@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) { |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
ebbd3a0
to
d5be048
Compare
@droidchef I updated the PR with appropriate variable names. |
@tarun0 Please fix the conflicts |
@therajanmaurya Fixed. |
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 anythingIf you have multiple commits please combine them into one commit by squashing them.