changeset 1086:969427aad169

minor
author Devel 1
date Thu, 07 May 2020 13:27:32 +0200
parents 351208f87e5d
children 2600ca3bdfd6
files stress-tester/src/main/java/com/passus/st/client/http/HttpClientListener.java stress-tester/src/main/java/com/passus/st/job/TestJob.java
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/client/http/HttpClientListener.java	Wed May 06 15:34:24 2020 +0200
+++ b/stress-tester/src/main/java/com/passus/st/client/http/HttpClientListener.java	Thu May 07 13:27:32 2020 +0200
@@ -10,6 +10,7 @@
  */
 public interface HttpClientListener extends ClientListener {
 
+    @Override
     default void responseReceived(Object request, Object response, FlowContext context) {
         if (request instanceof HttpRequest
                 || response instanceof HttpResponse) {
--- a/stress-tester/src/main/java/com/passus/st/job/TestJob.java	Wed May 06 15:34:24 2020 +0200
+++ b/stress-tester/src/main/java/com/passus/st/job/TestJob.java	Thu May 07 13:27:32 2020 +0200
@@ -205,8 +205,10 @@
             }
         }
 
-        // TODO: czy dodać filtry top-level do klienta???
-        filters.forEach(flowExecutor::addFilter);
+        if (filters != null) {
+            // TODO: czy dodać filtry top-level do klienta???
+            filters.forEach(flowExecutor::addFilter);
+        }
     }
 
 }