You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ma...@apache.org on 2019/02/22 14:45:36 UTC
[nifi] branch master updated: NIFI-6059 - Fixed NPE in GCS
processors when project ID is not specified
This is an automated email from the ASF dual-hosted git repository.
markap14 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/master by this push:
new 2336044 NIFI-6059 - Fixed NPE in GCS processors when project ID is not specified
2336044 is described below
commit 2336044b90aa6a9f669e9416850fc642d2590501
Author: Pierre Villard <pi...@gmail.com>
AuthorDate: Fri Feb 22 10:42:38 2019 +0100
NIFI-6059 - Fixed NPE in GCS processors when project ID is not specified
This closes #3327.
Signed-off-by: Mark Payne <ma...@hotmail.com>
---
.../org/apache/nifi/processors/gcp/storage/AbstractGCSProcessor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nifi-nar-bundles/nifi-gcp-bundle/nifi-gcp-processors/src/main/java/org/apache/nifi/processors/gcp/storage/AbstractGCSProcessor.java b/nifi-nar-bundles/nifi-gcp-bundle/nifi-gcp-processors/src/main/java/org/apache/nifi/processors/gcp/storage/AbstractGCSProcessor.java
index fba984e..81af2ad 100644
--- a/nifi-nar-bundles/nifi-gcp-bundle/nifi-gcp-processors/src/main/java/org/apache/nifi/processors/gcp/storage/AbstractGCSProcessor.java
+++ b/nifi-nar-bundles/nifi-gcp-bundle/nifi-gcp-processors/src/main/java/org/apache/nifi/processors/gcp/storage/AbstractGCSProcessor.java
@@ -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);
}