Prevent null pointer when extracting AccountAttribute

AccountAttribute may contain null values (e.g. ownerEmail);
extract its attributes by checking for null values beforehand
as none of the three attributes are mandatory for a Gerrit
account to exist.

Bug: Issue 10645
Change-Id: I69b762e6ce9460fb87f026a3af0d784e37107f96
2 files changed
tree: 48c54246be7bf336ab04626ae03d2de56e6f85c1
  1. .settings/
  2. src/
  3. tools/
  4. .bazelrc
  5. .gitignore
  6. bazlets.bzl
  7. BUILD
  8. LICENSE
  9. WORKSPACE