Skip to content

Commit 6966127

Browse files
authored
Merge pull request #208 from mngoe/OP-2517
fix insuree covered without policies
2 parents 274798f + 73e0a32 commit 6966127

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/openimis/imispolicies/Enquire.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ private void getInsureeInfo() {
262262
Log.e(LOG_TAG, "Fetching image failed", e);
263263
}
264264

265-
if (insuree.getPolicies().size() == 1 && insuree.getPolicies().get(0).getExpiryDate() == null) {
265+
if (insuree.getPolicies().size() == 1 && insuree.getPolicies().get(0).getExpiryDate() == null || insuree.getPolicies().isEmpty()) {
266266
tvPolicyStatus.setText(getResources().getString(R.string.EnquirePolicyNotCovered));
267267
} else {
268268
tvPolicyStatus.setText(getResources().getString(R.string.EnquirePolicyCovered));

0 commit comments

Comments
 (0)