Application close unexpectedly after calling web service if result is null
<p>i use the following lines in my program to call web service and taking the result</p>

<p>all thing is fine, but if any time if a web page has no content it has null or white space then application close unexpectedly.</p>

<pre><code>           1) SoapPrimitive result=null;
           2) androidHttpTransport.call(SOAP_ACTION, envelope);
               //upto this line program run smoothly
           3) result = (SoapPrimitive)envelope.getResponse();
</code></pre>

<p>plz suggest me, how i handle this, because i can only check the result value after completion of 3 line, but error occur before completion of line number 3.</p>

<p>i checked the envelop before result =(SoapPrimitive)envelope.getResponse(); but it not have any null, but i have still same problem</p>

<p>waiting for reply</p>
