Browse Source

Merge pull request #13564 from dashevchenko/resource_version_npe

Fixed NPE when load resource version
pull/13575/head
Viacheslav Klimov 1 year ago
committed by GitHub
parent
commit
6a8ba1d8a9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      application/src/main/java/org/thingsboard/server/service/sync/ie/importing/impl/ResourceImportService.java

2
application/src/main/java/org/thingsboard/server/service/sync/ie/importing/impl/ResourceImportService.java

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

Loading…
Cancel
Save