Fix comments without approvals

CommentAddedEvent's approvals field is null (see gerrit's
ChangeHookRunner), if there are no approvals, so checking only for
approvals.length or iterating over approvals raised a
NullPointerException if the comment did not provide approvals.

Change-Id: I99153554ced10368556bc9354ab2de3188df764d
2 files changed
tree: 41c1c1f42331fca2bc27e372239993566135971c
  1. hooks-its/
  2. .gitignore
  3. LICENSE
  4. pom.xml