Fix NPE on new column security
@@ -1058,6 +1058,7 @@ public class OSecurityShared implements OSecurityInternal {
while (rs.hasNext()) {
OResult item = rs.next();
Map<String, OIdentifiable> policies = item.getProperty("policies");
+ if (policies != null) {
for (Map.Entry<String, OIdentifiable> policyEntry : policies.entrySet()) {
try {
OSecurityResource res = OSecurityResource.getInstance(policyEntry.getKey());
@@ -1072,6 +1073,7 @@ public class OSecurityShared implements OSecurityInternal {
}
}
}
+ }
rs.close();
// return null;
// })).get();
