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);
Collections.sort(missing);
for(String uri : missing) {
String[] parts = URIStringUtils.splitURI(uri);
+ // URIStringUtils.splitURI returns root URI in non-standard format, so fix it manually as a workaround
+ if (parts[0].equals("http://")) {
+ parts[0] = "http:/";
+ }
Resource parent = resolvedParents.get(parts[0]);
// TODO: proper exception message