tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r655687 - /incubator/tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/BaseAssemblyProcessor.java
Date Mon, 12 May 2008 23:19:08 GMT
Author: lresende
Date: Mon May 12 16:19:08 2008
New Revision: 655687

URL: http://svn.apache.org/viewvc?rev=655687&view=rev
Log:
Checking if policedBinding has a null type before checking if it is unresolved to avoid NPE

Modified:
    incubator/tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/BaseAssemblyProcessor.java

Modified: incubator/tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/BaseAssemblyProcessor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/BaseAssemblyProcessor.java?rev=655687&r1=655686&r2=655687&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/BaseAssemblyProcessor.java
(original)
+++ incubator/tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/BaseAssemblyProcessor.java
Mon May 12 16:19:08 2008
@@ -383,7 +383,7 @@
                     if (binding instanceof IntentAttachPoint) {
                         IntentAttachPoint policiedBinding = (IntentAttachPoint)binding;
                         
-                        if ( policiedBinding.getType().isUnresolved() ) {
+                        if ( policiedBinding.getType() != null && policiedBinding.getType().isUnresolved()
) {
                             IntentAttachPointType resolved = 
                                 resolver.resolveModel(IntentAttachPointType.class, 
                                                       policiedBinding.getType());



Mime
View raw message