harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-5279) [classlib][swing][EIOffice] JList.getToolTipText(MouseEvent) throws NPE if set ListCellRenderer to null
Date Wed, 26 Dec 2007 11:28:43 GMT

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

Alexey Petrenko resolved HARMONY-5279.
--------------------------------------

    Resolution: Fixed

The patch has been applied. Please verify.

> [classlib][swing][EIOffice] JList.getToolTipText(MouseEvent) throws NPE if set ListCellRenderer
to null
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5279
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5279
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Linbin Yu
>            Assignee: Alexey Petrenko
>         Attachments: h5279-fix-replace.patch, h5279-fix.patch
>
>
> JList.getToolTipText(MouseEvent) will throw NPE if set ListCellRenderer to null.
> It's similar as Harmony-5223, no NPE thrown in RI.
> Just move mouse on frame to reproduce it:
> import javax.swing.JFrame;
> import javax.swing.JList;
> public class CellRendererDemo extends JFrame {
> 	CellRendererDemo() {
> 		JList list = new JList(new String[] { "a", "b", "c" });
> 		list.setCellRenderer(null);
> 		add(list);
> 		setBounds(0, 0, 200,200);
> 		setVisible(true);
> 	}
> 	public static void main(String[] args) {
> 		new CellRendererDemo();
> 	}
> }

-- 
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