You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vasily Zakharov (JIRA)" <ji...@apache.org> on 2007/03/20 15:21:32 UTC
[jira] Updated: (HARMONY-3443) [classlib][swing][netbeans]
Container.paint() throws NPE
[ https://issues.apache.org/jira/browse/HARMONY-3443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vasily Zakharov updated HARMONY-3443:
-------------------------------------
Attachment: Test.java
> [classlib][swing][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
> Attachments: 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.