This is an automated email from the ASF dual-hosted git repository.
pinal pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new ec44700a3 ATLAS-4847 : Export/Import : Atlas export fails and throws
NullPointerException
ec44700a3 is described below
commit ec44700a318d17f6fb78c588e0d3a4a4c0f8904b
Author: priyanshi-shah26 <[email protected]>
AuthorDate: Thu Apr 11 15:20:07 2024 +0530
ATLAS-4847 : Export/Import : Atlas export fails and throws
NullPointerException
Signed-off-by: Pinal Shah <[email protected]>
---
.../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;
}