Add missing null check on workbench window
This commit is contained in:
@@ -80,16 +80,18 @@ public class STS4LanguageClientImpl extends LanguageClientImpl implements STS4La
|
|||||||
IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();
|
IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();
|
||||||
if (windows != null) {
|
if (windows != null) {
|
||||||
for (IWorkbenchWindow ww : windows) {
|
for (IWorkbenchWindow ww : windows) {
|
||||||
IWorkbenchPage[] pages = ww.getPages();
|
if (ww != null) {
|
||||||
if (pages != null) {
|
IWorkbenchPage[] pages = ww.getPages();
|
||||||
for (IWorkbenchPage page : pages) {
|
if (pages != null) {
|
||||||
if (page != null) {
|
for (IWorkbenchPage page : pages) {
|
||||||
IEditorReference[] references = page.getEditorReferences();
|
if (page != null) {
|
||||||
if (references != null) {
|
IEditorReference[] references = page.getEditorReferences();
|
||||||
boolean restore = false;
|
if (references != null) {
|
||||||
for (IEditorReference reference : references) {
|
boolean restore = false;
|
||||||
IEditorPart editorPart = reference.getEditor(restore);
|
for (IEditorReference reference : references) {
|
||||||
updateEditorPart(editorPart);
|
IEditorPart editorPart = reference.getEditor(restore);
|
||||||
|
updateEditorPart(editorPart);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user