List.java (addNotify): Correctly check to see if peer does not exist.

* java/awt/List.java (addNotify): Correctly check to see if peer
	does not exist.

From-SVN: r49335
This commit is contained in:
Tom Tromey 2002-01-30 02:47:48 +00:00 committed by Tom Tromey
parent 6bb289655c
commit 7950ed567c
2 changed files with 4 additions and 1 deletions

View file

@ -858,7 +858,7 @@ deselect(int index)
public void
addNotify()
{
if (peer != null)
if (peer == null)
peer = getToolkit ().createList (this);
super.addNotify ();
}