From: markt Date: Thu, 19 Nov 2009 00:20:35 +0000 (+0000) Subject: Fix copy/paste error X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7a1d26573368b01728192ae0bf5eb883517a713c;p=tomcat7.0 Fix copy/paste error git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@882014 13f79535-47bb-0310-9956-ffa450edef68 --- 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); }