未验证 提交 e26a61ce 编写于 作者: S Serge Rider 提交者: GitHub

Merge pull request #13572 from dbeaver/npeImage#12657

#12657 do not read image if widget is disposed
...@@ -53,7 +53,11 @@ public class ImagePanelEditor implements IStreamValueEditor<ImageViewer> { ...@@ -53,7 +53,11 @@ public class ImagePanelEditor implements IStreamValueEditor<ImageViewer> {
if (!(new UITask<Boolean>() { if (!(new UITask<Boolean>() {
@Override @Override
protected Boolean runTask() { protected Boolean runTask() {
return control.loadImage(contentStream); if (!control.isDisposed()) {
return control.loadImage(contentStream);
} else {
return true; // already read
}
} }
}).execute()) }).execute())
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册