NIFI-6059 - Fixed NPE in GCS processors when project ID is not specified

This closes #3327.

Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
Pierre Villard 2019-02-22 10:42:38 +01:00 committed by Mark Payne
parent a0c28ee19e
commit 2336044b90
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public abstract class AbstractGCSProcessor extends AbstractGCPProcessor<Storage,
.setMaxAttempts(retryCount)
.build());
if (!projectId.isEmpty()) {
if (projectId != null && !projectId.isEmpty()) {
storageOptionsBuilder.setProjectId(projectId);
}