Fix master branch with Optional<ProjectState> from ProjectCache The Gerrit master branch has changed way ProjectCache works and the get() method returns now an Optional<ProjectState> instead of relying to null return values when the project doesn't exist. Change-Id: Ia97ffe46b65b76668b66e28a9ac0826d4826a9ec