tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r561293 - /incubator/tuscany/java/sca/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/ImportSDOPostProcessor.java
Date Tue, 31 Jul 2007 10:05:24 GMT
Author: antelder
Date: Tue Jul 31 03:05:21 2007
New Revision: 561293

URL: http://svn.apache.org/viewvc?view=rev&rev=561293
Log:
Fix NPE when clazz not resolved

Modified:
    incubator/tuscany/java/sca/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/ImportSDOPostProcessor.java

Modified: incubator/tuscany/java/sca/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/ImportSDOPostProcessor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/ImportSDOPostProcessor.java?view=diff&rev=561293&r1=561292&r2=561293
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/ImportSDOPostProcessor.java
(original)
+++ incubator/tuscany/java/sca/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/ImportSDOPostProcessor.java
Tue Jul 31 03:05:21 2007
@@ -56,7 +56,7 @@
                 String factoryName = getFactoryClassName(artifactURI);
                 ClassReference clazz = new ClassReference(factoryName);
                 clazz = contribution.getModelResolver().resolveModel(ClassReference.class,
clazz);
-                if (clazz.getClass() != null) {
+                if (clazz.getJavaClass() != null) {
                     try {
                         //check if it's a SDO factory by introspecting INSTANCE field
                         if (isSDOFactory(clazz.getJavaClass())) {



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message