You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2024/07/01 13:28:11 UTC

(streampipes) branch 2964-timestamp-conversion-is-broken-in-adapters updated: refactor(#2964): Fix e2e test for file replay adapter

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

zehnder pushed a commit to branch 2964-timestamp-conversion-is-broken-in-adapters
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/2964-timestamp-conversion-is-broken-in-adapters by this push:
     new 5b4ddda056 refactor(#2964): Fix e2e test for file replay adapter
5b4ddda056 is described below

commit 5b4ddda0569b54823fb51755ac86a1681f23732c
Author: Philipp Zehnder <te...@users.noreply.github.com>
AuthorDate: Mon Jul 1 15:28:02 2024 +0200

    refactor(#2964): Fix e2e test for file replay adapter
---
 .../streampipes/connect/iiot/protocol/stream/FileReplayAdapter.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/protocol/stream/FileReplayAdapter.java b/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/protocol/stream/FileReplayAdapter.java
index cdc3fb371d..b403c0b492 100644
--- a/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/protocol/stream/FileReplayAdapter.java
+++ b/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/protocol/stream/FileReplayAdapter.java
@@ -431,7 +431,7 @@ public class FileReplayAdapter implements StreamPipesAdapter {
         .filter(rule -> rule instanceof TimestampTranfsformationRuleDescription)
         .map(rule -> (TimestampTranfsformationRuleDescription) rule)
         .findFirst()
-        .get();
+        .orElse(null);
 
     // remove timestamp preprocessing rule
     adapterDescription