From 2726b7e7ce6ae37e22a8dff5462dfbb440cd9bac Mon Sep 17 00:00:00 2001 From: Sarkie Date: Mon, 30 Jan 2023 16:17:45 +0000 Subject: [PATCH] Added null check for the query.getKey(); Fixes issue #21 --- .../com/loadium/postman2jmx/model/jmx/JmxHTTPSamplerProxy.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/loadium/postman2jmx/model/jmx/JmxHTTPSamplerProxy.java b/src/main/java/com/loadium/postman2jmx/model/jmx/JmxHTTPSamplerProxy.java index 2590ba4..415f768 100644 --- a/src/main/java/com/loadium/postman2jmx/model/jmx/JmxHTTPSamplerProxy.java +++ b/src/main/java/com/loadium/postman2jmx/model/jmx/JmxHTTPSamplerProxy.java @@ -77,6 +77,9 @@ public static HTTPSamplerProxy newInstance(PostmanItem postmanItem) { for (PostmanQuery query : postmanItem.getRequest().getUrl().getQueries()) { + if(query.getKey() == null) { + continue; + } argument = new HTTPArgument(); argument.setName(query.getKey()); argument.setValue(query.getValue());