mirror of https://github.com/apache/jmeter.git
				
				
				
			Bug 59075 - JMS Publisher: NumberFormatException is thrown is priority or expiration fields are empty
Bugzilla Id: 59075 git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1732882 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
		
							parent
							
								
									bf43979832
								
							
						
					
					
						commit
						e2d75b8284
					
				|  | @ -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) { | ||||
|  |  | |||
|  | @ -294,6 +294,7 @@ Summary | |||
|     <li><bug>58947</bug>Connect metric is wrong when ConnectException occurs</li> | ||||
|     <li><bug>58980</bug>JMS Subscriber will return successful as long as 1 message is received. Contributed by Harrison Termotto (harrison dot termotto at stonybrook.edu)</li> | ||||
|     <li><bug>59051</bug>JDBC Request : Connection is closed by pool if it exceeds the configured lifetime (affects nightly build as of 23 fev 2016).</li> | ||||
|     <li><bug>59075</bug>JMS Publisher: NumberFormatException is thrown is priority or expiration fields are empty</li> | ||||
| </ul> | ||||
| 
 | ||||
| <h3>Controllers</h3> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue