mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
no getData for actions after console is disposed (EA-110448 - NPE: ConsoleViewImpl.foldImmediately)
This commit is contained in:
@@ -813,10 +813,10 @@ public class ConsoleViewImpl extends JPanel implements ConsoleView, ObservableCo
|
||||
|
||||
@Override
|
||||
public Object getData(final String dataId) {
|
||||
if (myEditor == null) {
|
||||
return null;
|
||||
}
|
||||
if (CommonDataKeys.NAVIGATABLE.is(dataId)) {
|
||||
if (myEditor == null) {
|
||||
return null;
|
||||
}
|
||||
final LogicalPosition pos = myEditor.getCaretModel().getLogicalPosition();
|
||||
final HyperlinkInfo info = myHyperlinks.getHyperlinkInfoByLineAndCol(pos.line, pos.column);
|
||||
final OpenFileDescriptor openFileDescriptor = info instanceof FileHyperlinkInfo ? ((FileHyperlinkInfo)info).getDescriptor() : null;
|
||||
|
||||
Reference in New Issue
Block a user