Author: rob.stryker(a)jboss.com
Date: 2011-10-31 05:30:07 -0400 (Mon, 31 Oct 2011)
New Revision: 36084
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/BehaviourModel.java
Log:
JBIDE-9874 - NPE in behaviour model loading
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/BehaviourModel.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/BehaviourModel.java 2011-10-31
02:11:27 UTC (rev 36083)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/BehaviourModel.java 2011-10-31
09:30:07 UTC (rev 36084)
@@ -18,7 +18,7 @@
public class BehaviourModel {
private static BehaviourModel model;
- public static BehaviourModel getModel() {
+ public static synchronized BehaviourModel getModel() {
if( model == null )
model = new BehaviourModel();
return model;
Show replies by date