commit | 3eff821e5c21e7478d4b04f8b57671f8aa8597fd | [log] [tgz] |
---|---|---|
author | jsholl <jsholl> | Tue Jan 23 20:07:49 2007 +0000 |
committer | jsholl <jsholl> | Tue Jan 23 20:07:49 2007 +0000 |
tree | a0f6171af6a024f84b288b9d5344815e71033d80 | |
parent | 740a1725d7c3d1baf2505f877aa88811f2822227 [diff] |
[164216] Thread race causing NPEs
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/StructureEdit.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/StructureEdit.java index daf6ab0..4499c71 100644 --- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/StructureEdit.java +++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/StructureEdit.java
@@ -438,8 +438,10 @@ */ public ProjectComponents getComponentModelRoot() { ProjectComponents comps = null; + synchronized(structuralModel){ if (!structuralModel.isDisposed()) comps = (ProjectComponents) structuralModel.getPrimaryRootObject(); + } return comps; }