You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2015/05/05 11:56:22 UTC
svn commit: r1677767 -
/sling/trunk/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/VltRepositoryFactory.java
Author: rombert
Date: Tue May 5 09:56:22 2015
New Revision: 1677767
URL: http://svn.apache.org/r1677767
Log:
VltRepositoryFactory: don't assume that the repository to disconnect
exists
Modified:
sling/trunk/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/VltRepositoryFactory.java
Modified: sling/trunk/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/VltRepositoryFactory.java
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/VltRepositoryFactory.java?rev=1677767&r1=1677766&r2=1677767&view=diff
==============================================================================
--- sling/trunk/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/VltRepositoryFactory.java (original)
+++ sling/trunk/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/VltRepositoryFactory.java Tue May 5 09:56:22 2015
@@ -81,7 +81,9 @@ public class VltRepositoryFactory implem
// marking the repository as disconnected allows us to keep using it
// (eg for node type registry lookups) although the server is stopped
//TODO we might come up with a proper online/offline handling here
- r.disconnected();
+ if ( r != null ) {
+ r.disconnected();
+ }
}
}