Author: akazakov
Date: 2009-10-29 10:45:30 -0400 (Thu, 29 Oct 2009)
New Revision: 18351
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ValidationContext.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5115
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ValidationContext.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ValidationContext.java 2009-10-29
13:57:01 UTC (rev 18350)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ValidationContext.java 2009-10-29
14:45:30 UTC (rev 18351)
@@ -11,6 +11,7 @@
package org.jboss.tools.jst.web.kb.internal.validation;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -182,7 +183,9 @@
* @see
org.jboss.tools.seam.internal.core.validation.ISeamValidationContext#clearRegisteredFiles()
*/
public void clearRegisteredFiles() {
- rootContext.clearRegisteredFiles();
+ if(rootContext!=null) {
+ rootContext.clearRegisteredFiles();
+ }
}
/*
@@ -212,6 +215,9 @@
* @see
org.jboss.tools.seam.internal.core.validation.ISeamValidationContext#getRegisteredFiles()
*/
public Set<IFile> getRegisteredFiles() {
+ if(rootContext==null) {
+ return Collections.emptySet();
+ }
return rootContext.getRegisteredFiles();
}
@@ -219,6 +225,9 @@
* @see
org.jboss.tools.seam.internal.core.validation.ISeamValidationContext#getRemovedFiles()
*/
public Set<IFile> getRemovedFiles() {
+ if(rootContext==null) {
+ return Collections.emptySet();
+ }
return rootContext.getRemovedFiles();
}