cvs commit: xml-axis-wsif/java/src/org/apache/wsif/providers/jca WSIFOperation_JCA.java

[email protected]
Newsgroups gmane.comp.apache.webservices.wsif.devel
Message-ID <[email protected]>
whitlock    2003/07/07 06:04:03

  Modified:    java/src/org/apache/wsif/providers/jca
                        WSIFOperation_JCA.java
  Log:
  Fix NPE when no message parts
  
  Revision  Changes    Path
  1.5       +2 -2      xml-axis-wsif/java/src/org/apache/wsif/providers/jca/WSIFOperation_JCA.java
  
  Index: WSIFOperation_JCA.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/jca/WSIFOperation_JCA.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- WSIFOperation_JCA.java	12 Dec 2002 01:39:08 -0000	1.4
  +++ WSIFOperation_JCA.java	7 Jul 2003 13:04:03 -0000	1.5
  @@ -157,7 +157,7 @@
   	public boolean executeRequestResponseOperation(WSIFMessage input, WSIFMessage output, WSIFMessage fault) throws WSIFException {
   
   		Trc.entry(this, input, output, fault);
  -		if (!input.getParts().hasNext())
  +        if (input.getParts() == null || !input.getParts().hasNext())
   			input = null;
   		try {
   			fieldFactory.updateInteractionSpec(input, fieldBinding, fieldOperationName, fieldInputName, fieldOutputName, fieldInteractionSpec);
  @@ -204,7 +204,7 @@
   	public void executeInputOnlyOperation(WSIFMessage input) throws WSIFException {
   
   		Trc.entry(this, input);
  -		if (!input.getParts().hasNext())
  +        if (input.getParts() == null || !input.getParts().hasNext())
   			input = null;
   		try {
   			fieldFactory.updateInteractionSpec(input, fieldBinding, fieldOperationName, fieldInputName, fieldOutputName, fieldInteractionSpec);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.