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

Objects refresh fix

上级 fec85c0d
......@@ -383,7 +383,9 @@ public class ObjectPropertiesEditor extends AbstractDatabaseObjectEditor<DBSObje
@Override
public void refreshPart(Object source, boolean force) {
propertiesPanel.refreshPart(source, force);
if (propertiesPanel != null) {
propertiesPanel.refreshPart(source, force);
}
if (folderComposite != null && folderComposite.getFolders() != null) {
for (TabbedFolderInfo folder : folderComposite.getFolders()) {
if (folder.getContents() instanceof IRefreshablePart) {
......
......@@ -269,7 +269,9 @@ public abstract class AbstractObjectCache<OWNER extends DBSObject, OBJECT extend
final Object srcValue = field.get(srcObject);
final Object dstValue = field.get(dstObject);
if (DBSObjectCache.class.isAssignableFrom(field.getType())) {
((DBSObjectCache)dstValue).clearCache();
if (dstValue != null) {
((DBSObjectCache) dstValue).clearCache();
}
} else {
if (Modifier.isFinal(modifiers)) {
// Can't copy final. Let's try to make recursive copy
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册