Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 37397 invoked from network); 27 Nov 2003 14:32:08 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Nov 2003 14:32:08 -0000 Received: (qmail 46146 invoked by uid 500); 27 Nov 2003 14:31:56 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 46125 invoked by uid 500); 27 Nov 2003 14:31:56 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 46102 invoked from network); 27 Nov 2003 14:31:55 -0000 Received: from unknown (HELO ns.isdd.sk) (213.151.209.11) by daedalus.apache.org with SMTP; 27 Nov 2003 14:31:55 -0000 Received: (qmail-ldap/ctrl 4536 invoked by uid 0); 27 Nov 2003 14:32:18 -0000 Received: from hrivik@isdd.sk by ns.isdd.sk by uid 1010 with qmail-scanner-1.10 (. Clear:0. Processed in 6.270022 secs); 27 Nov 2003 14:32:18 -0000 Received: from hrivik.isdd.sk (HELO hrivik) ([10.10.1.158]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 27 Nov 2003 14:32:11 -0000 From: "Roman Hrivik" To: Subject: RequestParameterModule Date: Thu, 27 Nov 2003 15:31:50 +0100 Message-ID: <006901c3b4f3$3534c810$9e010a0a@hrivik> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-reply-to: Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This can be reported as bug, I think. When I try to access for parameter from request in sitemap and in request is not such parameter I'll get null-exception. I think that RequestParameterModule should return always not null value. The method getAttribute from RequestParameterModule shoul be like this. public Object getAttribute( String name, Configuration modeConf, Map objectModel ) throws ConfigurationException { String pname = (String) this.settings.get("parameter", name); if ( modeConf != null ) { pname = modeConf.getChild("parameter").getValue(pname); } String value = ObjectModelHelper.getRequest(objectModel).getParameter( pname ); if (value == null) { return ""; } else { return value; } } --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org