Check if approvals array is null before iterating

When a CommentAddedEvent is received, the approvals supplier will return
null for the ApprovalAttribute[] if no approvals were contained in the
comment. Make sure to check if the array is null before iterating over
it.

Bug: Issue 12320
Change-Id: I624a186a1e17cbd02fe5eaa28cb60c594498e6b5
2 files changed
tree: 963f3eaff2c830757a2765870ce1c496c5e3894e
  1. .settings/
  2. src/
  3. tools/
  4. .bazelignore
  5. .bazelrc
  6. .gitignore
  7. bazlets.bzl
  8. BUILD
  9. LICENSE
  10. WORKSPACE