mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 11:49:23 +00:00
fix(aspects): fix null aspects case (#3501)
This commit is contained in:
parent
c4c74a3f45
commit
2c587ea285
@ -31,6 +31,10 @@ public class AspectType {
|
||||
return keys.stream().map(key -> {
|
||||
try {
|
||||
VersionedAspect entity = _entityClient.getAspect(key.getUrn(), key.getAspectName(), key.getVersion(), context.getActor());
|
||||
if (entity == null) {
|
||||
return DataFetcherResult.<Aspect>newResult().data(null).build();
|
||||
}
|
||||
|
||||
return DataFetcherResult.<Aspect>newResult().data(AspectMapper.map(entity)).build();
|
||||
} catch (RemoteInvocationException e) {
|
||||
if (e instanceof RestLiResponseException) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user