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 <[email protected]>
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 <[email protected]>
---
.../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);
}