Author: akazakov
Date: 2012-05-02 19:58:27 -0400 (Wed, 02 May 2012)
New Revision: 40737
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ValidationContext.java
Log:
https://issues.jboss.org/browse/JBIDE-11743 NullPointerException in validation jobs
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ValidationContext.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ValidationContext.java 2012-05-02
23:00:07 UTC (rev 40736)
+++
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ValidationContext.java 2012-05-02
23:58:27 UTC (rev 40737)
@@ -35,7 +35,7 @@
private ValidationResourceRegister validationResourceRegister;
private Map<IValidator, IValidatingProjectTree> projectTree = new
HashMap<IValidator, IValidatingProjectTree>();
- private static List<IConfigurationElement> ALL_VALIDATORS;
+ static List<IConfigurationElement> ALL_VALIDATORS;
private List<IValidator> validators = new ArrayList<IValidator>();
private Map<IValidator, Set<IProject>> validatedProjects = new
HashMap<IValidator, Set<IProject>>();
@@ -43,7 +43,7 @@
init(project);
}
- private synchronized void inintConfigurationElements() {
+ synchronized void inintConfigurationElements() {
if(ALL_VALIDATORS == null) {
// Load all the validators
ALL_VALIDATORS = new ArrayList<IConfigurationElement>();