make getRenderServiceFactory synchronized

This commit is contained in:
Eugene Kudelevsky
2012-10-31 14:08:24 +04:00
parent 1e45e6ff3e
commit 34eaea7d05
@@ -123,7 +123,7 @@ public class AndroidTargetData {
}
@Nullable
public RenderServiceFactory getRenderServiceFactory(@NotNull Project project) throws RenderingException, IOException {
public synchronized RenderServiceFactory getRenderServiceFactory(@NotNull Project project) throws RenderingException, IOException {
if (myRenderServiceFactory == null) {
final AttributeDefinitionsImpl attrDefs = getAttrDefsImpl(project);
if (attrDefs == null) {