Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 59320 invoked from network); 20 Apr 2007 13:25:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Apr 2007 13:25:44 -0000 Received: (qmail 92760 invoked by uid 500); 20 Apr 2007 13:25:50 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 92739 invoked by uid 500); 20 Apr 2007 13:25:50 -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 92730 invoked by uid 99); 20 Apr 2007 13:25:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2007 06:25:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Fri, 20 Apr 2007 06:25:43 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1BAAC714042 for ; Fri, 20 Apr 2007 06:25:22 -0700 (PDT) Message-ID: <5686795.1177075522110.JavaMail.jira@brutus> Date: Fri, 20 Apr 2007 06:25:22 -0700 (PDT) From: "Vasily Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3443) [classlib][awt][netbeans] Container.paint() throws NPE In-Reply-To: <5536523.1174400372366.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 [ https://issues.apache.org/jira/browse/HARMONY-3443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490353 ] Vasily Zakharov commented on HARMONY-3443: ------------------------------------------ I'm ok with that. > [classlib][awt][netbeans] Container.paint() throws NPE > ------------------------------------------------------ > > Key: HARMONY-3443 > URL: https://issues.apache.org/jira/browse/HARMONY-3443 > Project: Harmony > Issue Type: Bug > Components: App-Oriented Bug Reports, Classlib > Reporter: Vasily Zakharov > Assigned To: Alexey Petrenko > Attachments: HARMONY-3443-Container.patch, HARMONY-3443-Container.patch, HARMONY-3443-ContainerRTest.patch, HARMONY-3443-ContainerRTest.patch, Test.java > > > Container.paint(Graphics) throws NullPointerException if the container contains any components and the specified Graphics.getClip() call returns null. > The attached test demonstrates the problem. > Output on RI: > SUCCESS > Output on Harmony: > Exception in thread "main" java.lang.NullPointerException > at java.awt.Container.paintComponentsImpl(Container.java:12) > at java.awt.Container.paint(Container.java:936) > at Test.main(Test.java:9) > The reason for this problem is paintComponentsImpl() method executes the following line: > if (!clip.intersects(comp.getBounds())) { > without checking if clip is not null. I'm not sure how should this be fixed. > This issue was detected while trying to run Netbeans on Harmony. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.