You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/06/25 18:47:22 UTC
svn commit: r958033 -
/jakarta/jmeter/trunk/src/components/org/apache/jmeter/assertions/SMIMEAssertion.java
Author: sebb
Date: Fri Jun 25 16:47:21 2010
New Revision: 958033
URL: http://svn.apache.org/viewvc?rev=958033&view=rev
Log:
Allow for empty sub-results.
Modified:
jakarta/jmeter/trunk/src/components/org/apache/jmeter/assertions/SMIMEAssertion.java
Modified: jakarta/jmeter/trunk/src/components/org/apache/jmeter/assertions/SMIMEAssertion.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/components/org/apache/jmeter/assertions/SMIMEAssertion.java?rev=958033&r1=958032&r2=958033&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/components/org/apache/jmeter/assertions/SMIMEAssertion.java (original)
+++ jakarta/jmeter/trunk/src/components/org/apache/jmeter/assertions/SMIMEAssertion.java Fri Jun 25 16:47:21 2010
@@ -255,6 +255,8 @@ public class SMIMEAssertion {
int messageNumber) throws MessagingException {
SampleResult subResults[] = response.getSubResults();
+ if (messageNumber >= subResults.length) throw new MessagingException("Message number not present in results: "+messageNumber);
+
byte[] data = subResults[messageNumber].getResponseData();
Session session = Session.getDefaultInstance(new Properties());
MimeMessage msg = new MimeMessage(session, new ByteArrayInputStream(
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org