/*
- * Copyright (C) 2007-2012 Mathieu Baudier
+ * Copyright (C) 2007-2012 Argeo GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
doRefresh = true;
else if (element instanceof RepositoryNode) {
RepositoryNode rn = (RepositoryNode) element;
- String[] wkpNames = rn.getDefaultSession().getWorkspace()
- .getAccessibleWorkspaceNames();
- if (element.getChildren().length != wkpNames.length)
- doRefresh = true;
+ if (rn.isConnected()) {
+ String[] wkpNames = rn.getAccessibleWorkspaceNames();
+ if (element.getChildren().length != wkpNames.length)
+ doRefresh = true;
+ }
} else if (element instanceof RepositoriesNode) {
RepositoriesNode rn = (RepositoriesNode) element;
if (element.getChildren().length != rn.getRepositoryRegister()