servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r749317 - /servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java
Date Mon, 02 Mar 2009 14:31:26 GMT
Author: gertv
Date: Mon Mar  2 14:31:25 2009
New Revision: 749317

URL: http://svn.apache.org/viewvc?rev=749317&view=rev
Log:
Avoid NPE when component doesn't have Bootstrap class defined

Modified:
    servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java

Modified: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java?rev=749317&r1=749316&r2=749317&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java
(original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java
Mon Mar  2 14:31:25 2009
@@ -128,7 +128,9 @@
                     throw new DeploymentException("Component is already installed");
                 }
                 initBootstrap();
-                bootstrap.onInstall();
+                if (bootstrap != null) {
+                    bootstrap.onInstall();
+                }
                 try {
                     ObjectName name = initComponent();
                     cleanUpBootstrap();



Mime
View raw message