提交 7856f2cc 编写于 作者: S serge-rider

#9946 Reference panel: handle real associations read error

上级 b7a152f8
...@@ -304,11 +304,15 @@ public abstract class DBVUtils { ...@@ -304,11 +304,15 @@ public abstract class DBVUtils {
} }
@NotNull @NotNull
public static List<DBSEntityAssociation> getAllAssociations(@NotNull DBRProgressMonitor monitor, @NotNull DBSEntity entity) throws DBException { public static List<DBSEntityAssociation> getAllAssociations(@NotNull DBRProgressMonitor monitor, @NotNull DBSEntity entity) {
List<DBSEntityAssociation> result = new ArrayList<>(); List<DBSEntityAssociation> result = new ArrayList<>();
final Collection<? extends DBSEntityAssociation> realConstraints = entity.getAssociations(monitor); try {
if (!CommonUtils.isEmpty(realConstraints)) { final Collection<? extends DBSEntityAssociation> realConstraints = entity.getAssociations(monitor);
result.addAll(realConstraints); if (!CommonUtils.isEmpty(realConstraints)) {
result.addAll(realConstraints);
}
} catch (DBException e) {
log.debug("Error reading entity associations", e);
} }
if (!(entity instanceof DBVEntity)) { if (!(entity instanceof DBVEntity)) {
DBVEntity vEntity = getVirtualEntity(entity, false); DBVEntity vEntity = getVirtualEntity(entity, false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册