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-5291) [classlib][swing][EIOffice] JList.SetUI(null) causes some methods throw NPE
Date Tue, 11 Dec 2007 08:27:43 GMT
[classlib][swing][EIOffice] JList.SetUI(null) causes some methods throw NPE
---------------------------------------------------------------------------

                 Key: HARMONY-5291
                 URL: https://issues.apache.org/jira/browse/HARMONY-5291
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M4
            Reporter: Linbin Yu


JList.SetUI(null) causes some methods throw NPE in JList class.
Such as indexToLocation(int);


import javax.swing.JFrame;
import javax.swing.JList;

public class ListUIDemo extends JFrame {
	final JList list;
	CellRendererDemo() {
		list = new JList(new String[] { "a", "b", "c" });
		add(list);
		list.setUI(null);
		list.indexToLocation(0);
		setBounds(0, 0, 200,200);
		setVisible(true);
	}

	public static void main(String[] args) {
		new ListUIDemo();
	}
}


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