fix for views in schema
@@ -592,6 +592,7 @@ public abstract class OSchemaShared implements OCloseable {
clustersToViews.clear();
Collection<ODocument> storedViews = document.field("views");
+ if (storedViews != null){
for (ODocument v : storedViews) {
String name = v.field("name");
@@ -613,6 +614,7 @@ public abstract class OSchemaShared implements OCloseable {
addClusterViewMap(view);
}
+ }
views.clear();
views.putAll(newViews);
