Author: jkaputin
Date: Thu Dec 13 06:31:01 2007
New Revision: 603925

URL: http://svn.apache.org/viewvc?rev=603925&view=rev
Log:
WODEN-189
Fix NPE by ensuring that the reference to the containing Description from 
Interface, Binding and Service is set when the Component model is first 
initialized.

Modified:
    
incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java

Modified: 
incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java?rev=603925&r1=603924&r2=603925&view=diff
==============================================================================
--- 
incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java
 (original)
+++ 
incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java
 Thu Dec 13 06:31:01 2007
@@ -535,6 +535,13 @@
         //TODO consider moving the builder logic inside this class, maybe as 
an inner class.
         fComponentsInitialized = true;
         new ComponentModelBuilder(this);
+        
+        //Ensure the top-level components (Interface, Binding, Service) refer 
to this object 
+        //for their containing Description. The implementation of the 
following 3 methods 
+        //will initialize this reference.
+        getInterfaces();
+        getBindings();
+        getServices();
     }
     
     /* This package private method is called if something in the Element model 
changes that necessitates



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

Reply via email to