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/08/02 13:09:31 UTC

[incubator-streampipes] branch dev updated: [hotfix] Fix wrong variable in time series store

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 c31c15e4b [hotfix] Fix wrong variable in time series store
c31c15e4b is described below

commit c31c15e4bb29879f5e87cd83ea98d24d0b639286
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Tue Aug 2 15:09:22 2022 +0200

    [hotfix] Fix wrong variable in time series store
---
 .../org/apache/streampipes/dataexplorer/commons/TimeSeriesStore.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/streampipes-data-explorer-commons/src/main/java/org/apache/streampipes/dataexplorer/commons/TimeSeriesStore.java b/streampipes-data-explorer-commons/src/main/java/org/apache/streampipes/dataexplorer/commons/TimeSeriesStore.java
index a81b6e327..27fdcb376 100644
--- a/streampipes-data-explorer-commons/src/main/java/org/apache/streampipes/dataexplorer/commons/TimeSeriesStore.java
+++ b/streampipes-data-explorer-commons/src/main/java/org/apache/streampipes/dataexplorer/commons/TimeSeriesStore.java
@@ -35,7 +35,7 @@ public class TimeSeriesStore {
     private static final Logger LOG = LoggerFactory.getLogger(TimeSeriesStore.class);
 
     private ImageStore imageStore;
-    private InfluxStore influxStore;
+    private final InfluxStore influxStore;
 
 
     public TimeSeriesStore(SpConfig config,
@@ -72,7 +72,7 @@ public class TimeSeriesStore {
     }
 
     public void close() throws SpRuntimeException  {
-        if (influxStore != null) {
+        if (imageStore != null) {
             try {
                 this.imageStore.close();
             } catch (IOException e) {