Minor fixes

This commit is contained in:
Luca Frosini 2024-06-12 16:49:02 +02:00
parent b27a2695cf
commit f85fb9948f
1 changed files with 5 additions and 1 deletions

View File

@ -798,7 +798,11 @@ public class TypeManagement {
oSchema.dropClass(typeName); oSchema.dropClass(typeName);
ElementManagement<?,?> erManagement = getTypeManagement(accessType, typeName); ElementManagement<?,?> erManagement = getTypeManagement(accessType, typeName);
erManagement.delete(); // If we need to delete an internal type for maintenance we this this check
// otherwise we have a null pointer exception
if(erManagement!=null) {
erManagement.delete();
}
oDatabaseDocument.commit(); oDatabaseDocument.commit();