summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2012-10-16 13:24:08 (EDT)
committer Steffen Pingel2013-01-04 09:22:27 (EST)
commit0571109a77e7ebea1d208d14784775555ce35113 (patch)
treeb6abc89f70f51155a65a8212a360826bceed2d5c
parentc0efa41c27a273215ca49e7b8d7698cb4eb9530e (diff)
downloadorg.eclipse.mylyn.context-0571109a77e7ebea1d208d14784775555ce35113.zip
org.eclipse.mylyn.context-0571109a77e7ebea1d208d14784775555ce35113.tar.gz
org.eclipse.mylyn.context-0571109a77e7ebea1d208d14784775555ce35113.tar.bz2
NPE while activating a task: Restoring of editor state failed refs/changes/36/8236/2
-rw-r--r--org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/state/EditorStateParticipant.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/state/EditorStateParticipant.java b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/state/EditorStateParticipant.java
index 89e1b77..e341bde 100644
--- a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/state/EditorStateParticipant.java
+++ b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/state/EditorStateParticipant.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2009 Tasktop Technologies and others.
+ * Copyright (c) 2004, 2012 Tasktop Technologies and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -431,7 +431,7 @@ public class EditorStateParticipant extends ContextStateParticipant {
IPath path = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(pathString)).getLocation();
for (IEditorReference existingReference : page.getEditorReferences()) {
if (existingReference.getEditorInput() instanceof IPathEditorInput
- && (path.equals(((IPathEditorInput) existingReference.getEditorInput()).getPath()))) {
+ && (((IPathEditorInput) existingReference.getEditorInput()).getPath().equals(path))) {
// there is already an editor showing the same file
found = true;
break;