This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 4ef85a3 [STREAMPIPES-374] Fix bug in secrets visitor
4ef85a3 is described below
commit 4ef85a364cb1e26fee25f5df41fc7179a6644719
Author: Dominik Riemer <[email protected]>
AuthorDate: Thu May 27 14:45:24 2021 +0200
[STREAMPIPES-374] Fix bug in secrets visitor
---
.../java/org/apache/streampipes/manager/secret/SecretVisitor.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/secret/SecretVisitor.java
b/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/secret/SecretVisitor.java
index de51d4e..b51945e 100644
---
a/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/secret/SecretVisitor.java
+++
b/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/secret/SecretVisitor.java
@@ -96,7 +96,9 @@ public class SecretVisitor implements StaticPropertyVisitor {
@Override
public void visit(StaticPropertyAlternative staticPropertyAlternative) {
- staticPropertyAlternative.getStaticProperty().accept(this);
+ if (staticPropertyAlternative.getSelected() &&
staticPropertyAlternative.getStaticProperty() != null) {
+ staticPropertyAlternative.getStaticProperty().accept(this);
+ }
}
@Override