Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 28761 invoked from network); 28 Dec 2006 16:59:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Dec 2006 16:59:32 -0000 Received: (qmail 16343 invoked by uid 500); 28 Dec 2006 16:59:39 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 16320 invoked by uid 500); 28 Dec 2006 16:59:39 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 16311 invoked by uid 99); 28 Dec 2006 16:59:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Dec 2006 08:59:39 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Dec 2006 08:59:32 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B89627142D0 for ; Thu, 28 Dec 2006 08:58:26 -0800 (PST) Message-ID: <33203835.1167325106753.JavaMail.jira@brutus> Date: Thu, 28 Dec 2006 08:58:26 -0800 (PST) From: "Dmitry Irlyanov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2707) [classlib][swing] javax.swing.plaf.basic.BasicArrowButton.paintTriangle() throws unexpected NPE when incorrect 'direction' parameter is passed in In-Reply-To: <11967798.1166109081143.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-2707?page=all ] Dmitry Irlyanov updated HARMONY-2707: ------------------------------------- Attachment: H2707-BasicArrowButtonTest.patch Patch to add the regression test > [classlib][swing] javax.swing.plaf.basic.BasicArrowButton.paintTriangle() throws unexpected NPE when incorrect 'direction' parameter is passed in > ------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-2707 > URL: http://issues.apache.org/jira/browse/HARMONY-2707 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Alexander Simbirtsev > Attachments: H2707-BasicArrowButtonTest.patch, Utilities-patch.txt > > > Use the following code to reproduce: > import java.awt.Graphics2D; > import java.awt.image.BufferedImage; > import javax.swing.plaf.basic.BasicArrowButton; > import junit.framework.TestCase; > public class Test extends TestCase { > private static final int INCORRECT_DIRECTION = 10; > public void testcase1() { > try { > Graphics2D g2D = new BufferedImage(6, 6, BufferedImage.TYPE_INT_RGB).createGraphics(); > BasicArrowButton ab = new BasicArrowButton(0); > ab.paintTriangle(g2D, 0, 0, 0, INCORRECT_DIRECTION, true); > } catch (NullPointerException e) { > fail("NPE thrown"); > } > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira