Author: markt
Date: Thu Nov 19 00:20:35 2009
New Revision: 882014

URL: http://svn.apache.org/viewvc?rev=882014&view=rev
Log:
Fix copy/paste error

Modified:
    tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java

Modified: tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java?rev=882014&r1=882013&r2=882014&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java 
(original)
+++ tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java Thu Nov 
19 00:20:35 2009
@@ -103,8 +103,8 @@
 
         // 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);
                 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to