svn commit: rev 35615 - avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl

[email protected]
Newsgroups gmane.comp.jakarta.avalon.cvs
Message-ID <[email protected]>
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()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.