summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Orenstein2013-05-01 10:17:57 (EDT)
committerJeffrey Overbey2013-05-01 10:17:57 (EDT)
commit834a0ea4c9874eb3e674e45f7d29214d4b091c13 (patch)
treeef9128a1ca5194f444be9a0d16d8ce32d8d213dd
parentfcbb821ba6ab7e4e46c9ce9fe6e0ae6d6bbc3303 (diff)
downloadorg.eclipse.photran-834a0ea4c9874eb3e674e45f7d29214d4b091c13.zip
org.eclipse.photran-834a0ea4c9874eb3e674e45f7d29214d4b091c13.tar.gz
org.eclipse.photran-834a0ea4c9874eb3e674e45f7d29214d4b091c13.tar.bz2
Bug 404170 - Access Error trying to access vpg when creating a conflict
error message in AddOnlyToUseStatementRefactoring
-rw-r--r--org.eclipse.photran.core.vpg/src/org/eclipse/photran/internal/core/refactoring/AddOnlyToUseStmtRefactoring.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.photran.core.vpg/src/org/eclipse/photran/internal/core/refactoring/AddOnlyToUseStmtRefactoring.java b/org.eclipse.photran.core.vpg/src/org/eclipse/photran/internal/core/refactoring/AddOnlyToUseStmtRefactoring.java
index bc63100..a9265d5 100644
--- a/org.eclipse.photran.core.vpg/src/org/eclipse/photran/internal/core/refactoring/AddOnlyToUseStmtRefactoring.java
+++ b/org.eclipse.photran.core.vpg/src/org/eclipse/photran/internal/core/refactoring/AddOnlyToUseStmtRefactoring.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 University of Illinois at Urbana-Champaign and others.
+ * Copyright (c) 2009, 2013 University of Illinois at Urbana-Champaign 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
@@ -49,7 +49,7 @@ import org.eclipse.photran.internal.core.vpg.PhotranVPG;
*
* @author Kurt Hendle
* @author Jeff Overbey - externalized strings
- * @author Louis Orenstein (Tech-X Corporation) - fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=399565
+ * @author Louis Orenstein (Tech-X Corporation) - fix for https://bugs.eclipse.org/399565 and https://bugs.eclipse.org/404170
*/
public class AddOnlyToUseStmtRefactoring extends FortranEditorRefactoring
{
@@ -439,6 +439,7 @@ public class AddOnlyToUseStmtRefactoring extends FortranEditorRefactoring
public void addConflictError(List<Conflict> conflictingDef)
{
+ PhotranVPG vpg = getVPG(); // to prevent Bug https://bugs.eclipse.org/404170
for(Conflict conflict : conflictingDef)
{
//remove conflicts with the module itself