Fix java.util.NoSuchElementException: No value present

This fixes an issue where forUser.getUserName().get() could return
something that was unexpected leading to gerrit returning 500 errors.

Making it return null if it returns something unexpected fixes
the issue.

Bug: Issue 9820
Change-Id: If6c227d5134f81e7604b13800f90f785fa2ad206
1 file changed
tree: 702e920e3b02765dcd654254adb1e256293ac0c9
  1. .settings/
  2. src/
  3. .gitignore
  4. BUILD
  5. LICENSE