diff --git a/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java b/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java index e53fa00b20..4cf53e641c 100644 --- a/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java +++ b/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java @@ -516,11 +516,21 @@ public class PublisherSampler extends BaseJMSSampler implements TestStateListene } public String getExpiration() { - return getPropertyAsString(JMS_EXPIRATION, Utils.DEFAULT_NO_EXPIRY); + String expiration = getPropertyAsString(JMS_EXPIRATION); + if (expiration.length() == 0) { + return Utils.DEFAULT_NO_EXPIRY; + } else { + return expiration; + } } public String getPriority() { - return getPropertyAsString(JMS_PRIORITY, Utils.DEFAULT_PRIORITY_4); + String priority = getPropertyAsString(JMS_PRIORITY); + if (priority.length() == 0) { + return Utils.DEFAULT_PRIORITY_4; + } else { + return priority; + } } public void setPriority(String s) { diff --git a/xdocs/changes.xml b/xdocs/changes.xml index 4e80e6b6ed..98ecde6d4f 100644 --- a/xdocs/changes.xml +++ b/xdocs/changes.xml @@ -294,6 +294,7 @@ Summary