Author: scabanovich
Date: 2010-12-30 11:36:54 -0500 (Thu, 30 Dec 2010)
New Revision: 27835
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java
Log:
JBIDE-7962
https://issues.jboss.org/browse/JBIDE-7962
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java 2010-12-30
16:00:27 UTC (rev 27834)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java 2010-12-30
16:36:54 UTC (rev 27835)
@@ -131,8 +131,10 @@
XModelObjectLoaderUtil.setTempBody(this, body);
loader.load(this);
- threadSafeCopyFactory.destroy();
- threadSafeCopyFactory = null;
+ if(threadSafeCopyFactory != null) {
+ threadSafeCopyFactory.destroy();
+ threadSafeCopyFactory = null;
+ }
if(!isIncorrect() && !isOverlapped()) {
runCheckerOnLoad();