You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2022/02/11 19:03:58 UTC

[incubator-streampipes] 01/02: [hotfix] Avoid NullPointerException in static property visitor

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch experimental-module-federation-494
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git

commit fc67d347949c71ed30e9b000be49f3a26d9c8aaa
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Fri Feb 11 19:37:58 2022 +0100

    [hotfix] Avoid NullPointerException in static property visitor
---
 .../model/staticproperty/DefaultStaticPropertyVisitor.java            | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/DefaultStaticPropertyVisitor.java b/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/DefaultStaticPropertyVisitor.java
index a300e55..5e898c3 100644
--- a/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/DefaultStaticPropertyVisitor.java
+++ b/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/DefaultStaticPropertyVisitor.java
@@ -28,7 +28,9 @@ public abstract class DefaultStaticPropertyVisitor implements StaticPropertyVisi
 
   @Override
   public void visit(StaticPropertyAlternative staticPropertyAlternative) {
-    staticPropertyAlternative.getStaticProperty().accept(this);
+    if (staticPropertyAlternative.getStaticProperty() != null) {
+      staticPropertyAlternative.getStaticProperty().accept(this);
+    }
   }
 
   @Override