ClusteringSupport support = graph.getService(ClusteringSupport.class);
if(id == Extensions.ROOT_LIBRARY_CLUSTER_SET || id == Extensions.INDEX_ROOT_CLUSTER_SET) return;
Resource indexRootClusterSetResource = rootLibrary;
- if(support.isClusterSet(indexRoot)) {
+ if(indexRoot != null && support.isClusterSet(indexRoot)) {
indexRootClusterSetResource = indexRoot;
} else {
graph.setClusterSet4NewResource(rootLibrary);