When using the gerritReview task in a declarative pipeline without a valid credentials on the SCM side, instead of ignoring the task an NPE is raised.
This should be working now.