mirror of https://github.com/apache/nifi.git
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:
parent
a0c28ee19e
commit
2336044b90
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue