woolfel     2004/01/15 05:55:59

  Modified:    src/protocol/http/org/apache/jmeter/protocol/http/sampler
                        SoapSampler.java
  Log:
  to be safe, I added a check to make sure HeaderManager isn't null.
  
  peter lin
  
  
  Revision  Changes    Path
  1.9       +4 -3      
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/SoapSampler.java
  
  Index: SoapSampler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/SoapSampler.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- SoapSampler.java  15 Jan 2004 13:50:23 -0000      1.8
  +++ SoapSampler.java  15 Jan 2004 13:55:58 -0000      1.9
  @@ -59,8 +59,9 @@
               "" + getXmlData().length());
           // if the user provides a different content type, we use it
           // added 1-15-04 peter lin
  -        if (getHeaderManager().getPropertyAsString(
  -             HTTPSampler.CONTENT_TYPE).length() > 0){
  +        if (getHeaderManager() != null &&
  +        getHeaderManager().getPropertyAsString(
  +        HTTPSampler.CONTENT_TYPE).length() > 0){
                        // headerManager was set, so let's set the connection
                        // to use it.
                        connection.setRequestProperty("Content-type",
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to