Skip to content

Conversation

@Sarkie
Copy link

@Sarkie Sarkie commented Jan 30, 2023

Fixes issue #21

@Sarkie
Copy link
Author

Sarkie commented Jan 30, 2023

Or could use an argument exception

for (PostmanQuery query : postmanItem.getRequest().getUrl().getQueries()) {
            argument = new HTTPArgument();
			if (query.getKey() == null){
				throw new IllegalArgumentException(postmanItem.getRequest().getUrl().getRaw() + " has a null query");
			}
            argument.setName(query.getKey());
            argument.setValue(query.getValue());
            argument.setDescription(query.getKey());
            argument.setEnabled(true);
            argument.setMetaData("=");
            argument.setAlwaysEncoded(false);
            argument.setUseEquals(true);
            arguments.addArgument(argument);
        }
        httpSamplerProxy.setArguments(arguments);

        return httpSamplerProxy;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant