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);