This is an automated email from the ASF dual-hosted git repository. pinal pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push: new 94083a380 ATLAS-4847 : Export/Import : Atlas export fails and throws NullPointerException 94083a380 is described below commit 94083a3802dfe6f712e2c2d8cf777311ad5ca34b Author: priyanshi-shah26 <priyanshi.s...@freestoneinfotech.com> AuthorDate: Thu Apr 11 15:20:07 2024 +0530 ATLAS-4847 : Export/Import : Atlas export fails and throws NullPointerException Signed-off-by: Pinal Shah <pinal.s...@freestoneinfotech.com> --- .../java/org/apache/atlas/repository/impexp/ExportService.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/repository/src/main/java/org/apache/atlas/repository/impexp/ExportService.java b/repository/src/main/java/org/apache/atlas/repository/impexp/ExportService.java index 4615c6c2f..8ab071b98 100644 --- a/repository/src/main/java/org/apache/atlas/repository/impexp/ExportService.java +++ b/repository/src/main/java/org/apache/atlas/repository/impexp/ExportService.java @@ -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; }