Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BE60E200C72 for ; Fri, 28 Apr 2017 07:57:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BD006160BB2; Fri, 28 Apr 2017 05:57:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0FE8C160BA7 for ; Fri, 28 Apr 2017 07:57:26 +0200 (CEST) Received: (qmail 19134 invoked by uid 500); 28 Apr 2017 05:57:26 -0000 Mailing-List: contact issues-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@jmeter.apache.org Delivered-To: mailing list issues@jmeter.apache.org Received: (qmail 19123 invoked by uid 99); 28 Apr 2017 05:57:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2017 05:57:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B0CA6CD78A for ; Fri, 28 Apr 2017 05:57:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.002 X-Spam-Level: X-Spam-Status: No, score=-0.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 6EYO-tzQxchr for ; Fri, 28 Apr 2017 05:57:25 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 689305FAC9 for ; Fri, 28 Apr 2017 05:57:24 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 9E6D8E069F for ; Fri, 28 Apr 2017 05:57:23 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id A3E246123D; Fri, 28 Apr 2017 05:57:22 +0000 (UTC) From: bugzilla@apache.org To: issues@jmeter.apache.org Subject: [Bug 61050] Crash in JMeterUtils due to null ResourceBundle in method getResStringDefault while trying to use DurationAssertion Date: Fri, 28 Apr 2017 05:57:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: JMeter X-Bugzilla-Component: HTTP X-Bugzilla-Version: 3.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chuha.billi@gmail.com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: issues@jmeter.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Fri, 28 Apr 2017 05:57:27 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D61050 --- Comment #2 from chuha.billi@gmail.com --- Hi Phillippe, I understand the sentiment, but while digging up in the JMeter code I found= out that in in Class JMeterUtils and method getResStringDefault the bundle is assigned the reference of resources object as ResourceBundle bundle =3D resources;, now the resources object is initialized only if the locale is s= et, if not set then the bundle is null and that then before accessing the bundle the check of it being not null is not checked. which causes the crash. now if this is designed like this then setting locale is mandatory but if n= ot then I think won't it be a good option to do a null check before using the object and if found null then setting locale using system default values.?? This was the query in my mind with which I raised the bug. --=20 You are receiving this mail because: You are the assignee for the bug.=