Fix copy/paste error
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 19 Nov 2009 00:20:35 +0000 (00:20 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 19 Nov 2009 00:20:35 +0000 (00:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@882014 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/naming/java/javaURLContextFactory.java

index 4425e33..76a302f 100644 (file)
@@ -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<String,Object>)environment, MAIN);
                 }