avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject svn commit: rev 30988 - avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl
Date Fri, 30 Jul 2004 11:06:50 GMT
Author: niclas
Date: Fri Jul 30 04:06:49 2004
New Revision: 30988

Modified:
   avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/HttpContextImpl.java
Log:
Added a proper hasService() check for the optional MimeTypes dependency.

Modified: avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/HttpContextImpl.java
==============================================================================
--- avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/HttpContextImpl.java
(original)
+++ avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/HttpContextImpl.java
Fri Jul 30 04:06:49 2004
@@ -151,7 +151,8 @@
         
         m_RequestLog = (RequestLog) man.lookup( "request-log" );
         
-        m_MimeTypes = (MimeTypes) man.lookup( "mimetypes" );
+        if( man.hasService( "mimetypes" ) )
+            m_MimeTypes = (MimeTypes) man.lookup( "mimetypes" );
     }
 
     public void parameterize( Parameters params )

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message