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] Commented: (HARMONY-5279) [classlib][swing][EIOffice] JList.getToolTipText(MouseEvent) throws NPE if set ListCellRenderer to null
Date Mon, 10 Dec 2007 11:28:43 GMT

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

Dmitry Irlyanov commented on HARMONY-5279:
------------------------------------------

My apologies,
I think the only verification for tooltip getter  is probably bad solution.

Try to verify getPreferredScrollableViewportSize() method and setPrototypeCellValue(). I'm
not sure because I haven't acess to harmony code right now, but, please, verify these cases
too.

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