ATLAS-4847 : Export/Import : Atlas export fails and throws NullPointerException

Signed-off-by: Pinal Shah <pinal.shah@freestoneinfotech.com>
This commit is contained in:
priyanshi-shah26 2024-04-11 15:20:07 +05:30 committed by Pinal Shah
parent 386067ebfe
commit 94083a3802
1 changed files with 5 additions and 4 deletions

View File

@ -442,12 +442,13 @@ public class ExportService {
return ret;
}
for (AtlasEntity entity : entityWithExtInfo.getReferredEntities().values()) {
if((doesTimestampQualify(entity))) {
ret.add(entity);
if (entityWithExtInfo.getReferredEntities() != null) {
for (AtlasEntity entity : entityWithExtInfo.getReferredEntities().values()) {
if((doesTimestampQualify(entity))) {
ret.add(entity);
}
}
}
return ret;
}