summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2012-10-16 13:24:08 (EDT)
committer Gerrit Code Review @ Eclipse.org2013-01-07 09:27:49 (EST)
commitea40a20f46fa7bf61c9950358fda5ac84acb6dfe (patch)
tree3ac0e3d4b93aa43f338893b060a629fd4d78786c
parent456133fb86a0498fa66bb829cad5810ac9df02e1 (diff)
downloadorg.eclipse.mylyn.context-ea40a20f46fa7bf61c9950358fda5ac84acb6dfe.zip
org.eclipse.mylyn.context-ea40a20f46fa7bf61c9950358fda5ac84acb6dfe.tar.gz
org.eclipse.mylyn.context-ea40a20f46fa7bf61c9950358fda5ac84acb6dfe.tar.bz2
NPE while activating a task: Restoring of editor state failed refs/changes/36/8236/3
-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;