From 7a1d26573368b01728192ae0bf5eb883517a713c Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 19 Nov 2009 00:20:35 +0000 Subject: [PATCH] Fix copy/paste error git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@882014 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/naming/java/javaURLContextFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/org/apache/naming/java/javaURLContextFactory.java b/java/org/apache/naming/java/javaURLContextFactory.java index 4425e3394..76a302fd7 100644 --- a/java/org/apache/naming/java/javaURLContextFactory.java +++ b/java/org/apache/naming/java/javaURLContextFactory.java @@ -103,8 +103,8 @@ public class javaURLContextFactory // If the thread is not bound, return a shared writable context if (initialContext == null) { - if (initialContext == null) { - synchronized(this) { + synchronized(this) { + if (initialContext == null) { initialContext = new NamingContext( (Hashtable)environment, MAIN); } -- 2.11.0