RenamePreconditions: check if project state is not null

Avoid NullPointerException when performing ssh rename-project on a non
existing project. The cause of null pointer is ProjectCache.get() method
which returns null if no such project exists.

Change-Id: Ifea14a48bf61e14306bb09bfbe387d7a8f2b5325
2 files changed
tree: 72a657421dba40a3562c967712dec3f387577a82
  1. .settings/
  2. src/
  3. tools/
  4. .bazelignore
  5. .bazelrc
  6. .bazelversion
  7. .gitignore
  8. bazlets.bzl
  9. BUILD
  10. external_plugin_deps.bzl
  11. LICENSE
  12. README.md
  13. WORKSPACE
README.md

Rename project plugin for Gerrit Code Review

This plugin currently supports Gerrit version 2.14.X and 2.15.X with changes in reviewDb. Also supported is the noteDb alternative for Gerrit versions 2.15.X and above.

For more information, see: src/main/resources/Documentation/about.md