harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Simbirtsev (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2604) [classlib][swing] javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.actionPerformed(null) throws NPE
Date Mon, 11 Dec 2006 14:04:22 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2604?page=all ]

Alexander Simbirtsev updated HARMONY-2604:
------------------------------------------

     Patch Info: [Patch Available]
    Component/s: Classlib
        Summary: [classlib][swing] javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.actionPerformed(null)
throws NPE  (was: [classlib][awt] javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.actionPerformed(null)
throws NPE)

> [classlib][swing] javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.actionPerformed(null)
throws NPE
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2604
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2604
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Attachments: sizeaction-patch-2.txt
>
>
> javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.actionPerformed(null)
> throws unspecified NPE while RI does not.
> Here's the code to reproduce:
> import javax.swing.JInternalFrame;
> import javax.swing.plaf.basic.BasicInternalFrameTitlePane;
> import javax.swing.plaf.metal.MetalInternalFrameTitlePane;
> import junit.framework.TestCase;
> public class Test extends TestCase {
>     public void testcase1() {
>         String str = "test string";
>         JInternalFrame jf = new JInternalFrame(str);
>         MetalInternalFrameTitlePane jp = new MetalInternalFrameTitlePane(jf);
>         BasicInternalFrameTitlePane.SizeAction m = jp.new SizeAction();
>         try {
>             m.actionPerformed(null);
>         } catch (NullPointerException e) {
>             fail("NPE shouldn't be 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

        

Mime
View raw message