commit | 9d54531c46b522eef38e3390df3911e6437999c0 | [log] [tgz] |
---|---|---|
author | klow <klow> | Thu Jun 30 22:22:51 2011 +0000 |
committer | klow <klow> | Thu Jun 30 22:22:51 2011 +0000 |
tree | 28dabee64711af661e08cb28ea31885083f80347 | |
parent | 667d80d7caf688858b64fc88441742a6caff0bc1 [diff] |
wlu: try/catch exceptions which can be caused by data error
diff --git a/1.5/plugins/org.eclipse.epf.library/src/org/eclipse/epf/library/realization/impl/RealizedDescriptor.java b/1.5/plugins/org.eclipse.epf.library/src/org/eclipse/epf/library/realization/impl/RealizedDescriptor.java index f673ef8..99e01aa 100644 --- a/1.5/plugins/org.eclipse.epf.library/src/org/eclipse/epf/library/realization/impl/RealizedDescriptor.java +++ b/1.5/plugins/org.eclipse.epf.library/src/org/eclipse/epf/library/realization/impl/RealizedDescriptor.java
@@ -69,7 +69,12 @@ Object value = null; if (getDescriptor().getPresentation() != null) { - value = getDescriptor().getPresentation().eGet(feature); + try { + value = getDescriptor().getPresentation().eGet(feature); + } catch (Throwable e) { + LibraryPlugin.getDefault().getLogger().logError(e); + return null; + } } if (getLinkedElement() == null || getLinkedElement().getPresentation() == null) {