You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/12/26 12:28:43 UTC
[jira] Resolved: (HARMONY-5279) [classlib][swing][EIOffice]
JList.getToolTipText(MouseEvent) throws NPE if set ListCellRenderer to null
[ 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.