fixed null pointer exception

This commit is contained in:
dashevchenko 2025-06-11 14:43:22 +03:00
parent 9567e9e0ce
commit cba1972109

View File

@ -66,7 +66,7 @@ public class ResourceImportService extends BaseEntityImportService<TbResourceId,
protected void cleanupForComparison(TbResource resource) { protected void cleanupForComparison(TbResource resource) {
super.cleanupForComparison(resource); super.cleanupForComparison(resource);
resource.setSearchText(null); resource.setSearchText(null);
if (resource.getDescriptor().isNull()) { if (resource.getDescriptor() != null && resource.getDescriptor().isNull()) {
resource.setDescriptor(null); resource.setDescriptor(null);
} }
} }