You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Linbin Yu (JIRA)" <ji...@apache.org> on 2007/12/11 09:27:43 UTC

[jira] Created: (HARMONY-5291) [classlib][swing][EIOffice] JList.SetUI(null) causes some methods throw NPE

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