harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Irlyanov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4524) [classlib][swing] BasicSplitPaneUI throws NPE if vertical split pane was not fully initialized
Date Tue, 24 Jul 2007 11:58:31 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dmitry Irlyanov updated HARMONY-4524:
-------------------------------------

    Attachment: H4524-BasicSplitPaneUI.patch

> [classlib][swing] BasicSplitPaneUI throws NPE if vertical split pane was not fully initialized
> ----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4524
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4524
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey Petrenko
>            Assignee: Alexey Petrenko
>         Attachments: H4524-BasicSplitPaneUI.patch
>
>
> === testcase ===
> import javax.swing.JFrame;
> import javax.swing.JSplitPane;
> public class Harmony4524Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("SplitPaneTest");
>         JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
>         
>         frame.add(split);
>         frame.setVisible(true);
>     }
> }
> === testcase ===
> === stacktrace ===
> java.lang.NullPointerException
> 	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.layoutContainer(BasicSplitPaneUI.java:125)
> 	at java.awt.Container.layout(Container.java:891)
> 	at java.awt.Container.doLayout(Container.java:532)
> 	at java.awt.Container.validate(Container.java:1174)
> 	at java.awt.Container.validateTree(Container.java:1189)
> 	at java.awt.Container.validate(Container.java:1175)
> 	at java.awt.Container.validateTree(Container.java:1189)
> 	at java.awt.Container.validate(Container.java:1175)
> 	at java.awt.Container.validateTree(Container.java:1189)
> 	at java.awt.Container.validate(Container.java:1175)
> 	at java.awt.Container.validateTree(Container.java:1189)
> 	at java.awt.Container.validate(Container.java:1175)
> 	at java.awt.Component.show(Component.java:3087)
> 	at java.awt.Window.show(Window.java:547)
> 	at java.awt.Component.show(Component.java:3102)
> 	at java.awt.Component.setVisible(Component.java:3075)
> 	at Harmony4524Test.main(Harmony4524Test.java:9)
> === stacktrace ===
> To see this stack trace please apply the following patch:
> === exception patch ===
> Index: modules/awt/src/main/java/common/java/awt/Container.java
> ===================================================================
> --- modules/awt/src/main/java/common/java/awt/Container.java	(revision 558941)
> +++ modules/awt/src/main/java/common/java/awt/Container.java	(working copy)
> @@ -1189,6 +1189,8 @@
>                      c.validate();
>                  }
>              }
> +        } catch (Exception e) {
> +            e.printStackTrace();
>          } finally {
>              toolkit.unlockAWT();
>          }
> === exception patch ===

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message