Skip to content

Commit 7dcc76e

Browse files
authored
fix(#3672): Fix null pointer when property scope is not set properly (#3673)
1 parent fc029be commit 7dcc76e

File tree

1 file changed

+2
-2
lines changed
  • streampipes-extensions/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/datalake

1 file changed

+2
-2
lines changed

streampipes-extensions/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/datalake/DataLakeSink.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ private EventSchema assignPropertyScopesBasedOnDimensions(EventSchema eventSchem
172172
})
173173
.peek(ep -> {
174174
// Remova all dimensions from DIMENSION_PROPERTY scope if not part of dimensions
175-
if (ep.getPropertyScope()
176-
.equals(PropertyScope.DIMENSION_PROPERTY.name())) {
175+
if (PropertyScope.DIMENSION_PROPERTY.name()
176+
.equals(ep.getPropertyScope())) {
177177
if (!dimensions.contains(ep.getRuntimeName())) {
178178
ep.setPropertyScope(PropertyScope.MEASUREMENT_PROPERTY.name());
179179
}

0 commit comments

Comments
 (0)