Project: SWT
Bug 19169 NPE on Emulated CoolItem constructor
Reported: 2002-06-04 14:45:39 | Status: resolved fixed

build 20020602 (F2) The last changes on the emulated CoolItem contructor have introduced a bug, it is the code: public CoolItem (CoolBar parent, int style) { this (parent, style, parent.getItemCount()); } And this is right code: public CoolItem (CoolBar parent, int style) { super(parent, style); this.parent = parent; parent.createItem (this, parent.getItemCount()); calculateChevronTrim (); } This bug do not occurs on Eclipse !

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolItem.java