Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 66381 invoked from network); 12 Aug 2010 15:51:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Aug 2010 15:51:11 -0000 Received: (qmail 66411 invoked by uid 500); 12 Aug 2010 15:51:11 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 66301 invoked by uid 500); 12 Aug 2010 15:51:10 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 66293 invoked by uid 99); 12 Aug 2010 15:51:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 15:51:10 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 15:51:04 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Oja3H-0005fy-No for users@activemq.apache.org; Thu, 12 Aug 2010 08:50:43 -0700 Message-ID: <29420197.post@talk.nabble.com> Date: Thu, 12 Aug 2010 08:50:43 -0700 (PDT) From: Sodan To: users@activemq.apache.org Subject: CMS getString throws exception if string is empty ? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: sodan@sodan.dk example: try { string xx =3D map->getString("myString"); return xx; } catch (...) { // failed MessageBeep(-1); } if the field myString in the message is empty (ie. ""), then it throws an exception. I am using 3.2.2 please help with a fix asap ! S=C3=B8ren --=20 View this message in context: http://old.nabble.com/CMS-getString-throws-ex= ception-if-string-is-empty---tp29420197p29420197.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.