[jbosstools-commits] JBoss Tools SVN: r23839 - trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Jul 30 11:43:07 EDT 2010


Author: dazarov
Date: 2010-07-30 11:43:07 -0400 (Fri, 30 Jul 2010)
New Revision: 23839

Modified:
   trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/ELReferencesQueryParticipant.java
Log:
https://jira.jboss.org/browse/JBIDE-6759

Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/ELReferencesQueryParticipant.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/ELReferencesQueryParticipant.java	2010-07-30 15:03:04 UTC (rev 23838)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/ELReferencesQueryParticipant.java	2010-07-30 15:43:07 UTC (rev 23839)
@@ -54,6 +54,9 @@
 			ElementQuerySpecification qs = (ElementQuerySpecification)querySpecification;
 			if(qs.getElement() instanceof IMethod || qs.getElement() instanceof IType){
 				IFile file = (IFile)qs.getElement().getResource();
+				if(file == null)
+					return;
+				
 				String name = qs.getElement().getElementName();
 				
 				searcher = new ELSearcher(requestor, qs.getElement(), file, name);



More information about the jbosstools-commits mailing list