tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r666547 - /incubator/tuscany/java/sca/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactory.java
Date Wed, 11 Jun 2008 07:34:21 GMT
Author: antelder
Date: Wed Jun 11 00:34:21 2008
New Revision: 666547

URL: http://svn.apache.org/viewvc?rev=666547&view=rev
Log:
Fix NPE when no ICF defined

Modified:
    incubator/tuscany/java/sca/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactory.java

Modified: incubator/tuscany/java/sca/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactory.java?rev=666547&r1=666546&r2=666547&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactory.java
(original)
+++ incubator/tuscany/java/sca/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactory.java
Wed Jun 11 00:34:21 2008
@@ -136,7 +136,7 @@
      * See: http://www-1.ibm.com/support/docview.wss?uid=swg24012804 
      */
     private void initJREEnvironment(Properties props) {
-    	if (props.get(Context.INITIAL_CONTEXT_FACTORY).equals("com.ibm.websphere.naming.WsnInitialContextFactory"))
{
+    	if ("com.ibm.websphere.naming.WsnInitialContextFactory".equals(props.get(Context.INITIAL_CONTEXT_FACTORY)))
{
         	String vendor = System.getProperty("java.vendor");
     		if (vendor == null || !vendor.contains("IBM")) {
             	props.setProperty("com.ibm.CORBA.ORBInit","com.ibm.ws.sib.client.ORB");



Mime
View raw message