Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 12714 invoked from network); 3 Mar 2001 17:17:37 -0000 Received: from mail12.svr.pol.co.uk (195.92.193.215) by h31.sny.collab.net with SMTP; 3 Mar 2001 17:17:37 -0000 Received: from [195.92.67.23] (helo=mail18.svr.pol.co.uk) by mail12.svr.pol.co.uk with esmtp (Exim 3.13 #0) id 14ZFf0-0001gF-00; Sat, 03 Mar 2001 17:17:38 +0000 Received: from modem-13.north-carolina.dialup.pol.co.uk ([62.137.84.13] helo=hydrogen) by mail18.svr.pol.co.uk with esmtp (Exim 3.13 #0) id 14ZFez-0004yv-00; Sat, 03 Mar 2001 17:17:38 +0000 Received: from paulr by hydrogen with local (Exim 3.22 #1 (Debian)) id 14ZFeZ-0000TP-00; Sat, 03 Mar 2001 17:17:11 +0000 Date: Sat, 3 Mar 2001 17:17:11 +0000 From: Paul Russell To: cocoon-dev@xml.apache.org, stuart.roebuck@adolos.co.uk Subject: Re: [C2] [Patch] ResourceReader.java - setContentType() Message-ID: <20010303171711.H652@hydrogen.internal.luminas.co.uk> Reply-To: Paul Russell References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: ; from stuart.roebuck@adolos.co.uk on Sat, Mar 03, 2001 at 04:40:07PM +0000 Sender: Paul Russell X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N * Stuart Roebuck (stuart.roebuck@adolos.co.uk) wrote : > The direct symptom was a null pointer exception when setting the > content type. It looks like the newly introduced setting of content > type doesn't account for situations when getMimeType may return a null > value. Okay, I've applied a slightly more efficient version of your patch. Thanks Stuart. -- Paul Russell Email: paul@luminas.co.uk Technical Director Tel: +44 (0)20 8553 6622 Luminas Internet Applications Fax: +44 (0)870 28 47489 This is not an official statement or order. Web: www.luminas.co.uk