harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Linbin Yu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5279) [classlib][swing][EIOffice] JList.getToolTipText(MouseEvent) throws NPE if set ListCellRenderer to null
Date Mon, 10 Dec 2007 11:00:42 GMT
[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


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