commit | 16561ab3d48b5632698a6620f19443a945c5b84e | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Wed Apr 06 11:15:20 2016 +0200 |
committer | Edwin Kempin <ekempin@google.com> | Wed Apr 06 17:20:38 2016 +0200 |
tree | c278dca15786f1d68059e3f9f9dca50027300924 | |
parent | edea12c1613838882605b83aa4ae11b732d60aed [diff] |
Ignore aprrovals with null value Change-Id: Ic0e4fdf2a48a9078953359d92c8500cd7f420c67 Signed-off-by: Edwin Kempin <ekempin@google.com>
diff --git a/app/src/main/java/com/google/reviewit/widget/CodeReviewVotes.java b/app/src/main/java/com/google/reviewit/widget/CodeReviewVotes.java index 4cd62ab..d05eadb 100644 --- a/app/src/main/java/com/google/reviewit/widget/CodeReviewVotes.java +++ b/app/src/main/java/com/google/reviewit/widget/CodeReviewVotes.java
@@ -67,7 +67,9 @@ Set<Integer> values = new HashSet<>(); for (ApprovalInfo approval : codeReviewApprovals) { - values.add(approval.value); + if (approval.value != null) { + values.add(approval.value); + } } values.remove(0);
diff --git a/app/src/main/java/com/google/reviewit/widget/VerifiedVotes.java b/app/src/main/java/com/google/reviewit/widget/VerifiedVotes.java index 8f61959..202f101 100644 --- a/app/src/main/java/com/google/reviewit/widget/VerifiedVotes.java +++ b/app/src/main/java/com/google/reviewit/widget/VerifiedVotes.java
@@ -64,7 +64,9 @@ Set<Integer> values = new HashSet<>(); for (ApprovalInfo approval : codeReviewApprovals) { - values.add(approval.value); + if (approval.value != null) { + values.add(approval.value); + } } values.remove(0);