avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject svn commit: rev 35615 - avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl
Date Tue, 03 Aug 2004 03:03:30 GMT
Author: niclas
Date: Mon Aug  2 20:03:30 2004
New Revision: 35615

Modified:
   avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/HttpContextImpl.java
Log:
NPE problem if no MimeType is declared.

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
Mon Aug  2 20:03:30 2004
@@ -244,7 +244,8 @@
             m_HttpContext.setMaxCacheSize( m_MaxCacheSize );        
         if( m_MaxCachedFilesize > 0 )
             m_HttpContext.setMaxCachedFileSize( m_MaxCachedFilesize );        
-        m_HttpContext.setMimeMap( m_MimeTypes.getExtensionMap() );
+        if( m_MimeTypes != null )
+            m_HttpContext.setMimeMap( m_MimeTypes.getExtensionMap() );
     }
         
     public void start()

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


Mime
View raw message