Author: tolusha
Date: 2010-12-02 02:06:27 -0500 (Thu, 02 Dec 2010)
New Revision: 3590
Modified:
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/repository/creation/RepositoryCreationServiceImpl.java
Log:
EXOJCR-929: fix stop method. check if rpcService exists or not
Modified:
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/repository/creation/RepositoryCreationServiceImpl.java
===================================================================
---
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/repository/creation/RepositoryCreationServiceImpl.java 2010-12-01
16:16:32 UTC (rev 3589)
+++
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/repository/creation/RepositoryCreationServiceImpl.java 2010-12-02
07:06:27 UTC (rev 3590)
@@ -639,8 +639,11 @@
*/
public void stop()
{
- this.rpcService.unregisterCommand(reserveRepositoryName);
- this.rpcService.unregisterCommand(createRepository);
- this.rpcService.unregisterCommand(startRepository);
+ if (this.rpcService != null)
+ {
+ this.rpcService.unregisterCommand(reserveRepositoryName);
+ this.rpcService.unregisterCommand(createRepository);
+ this.rpcService.unregisterCommand(startRepository);
+ }
}
}
Show replies by date