This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If there is a problem with the code in the path in which the combobox.removeAllItems call is made, it can be before or after the call to removeAllItems, removeAllItems will have an exception. Even though I knew there were Items in the combobox, I put an if and checked the count greater then zero and it the count came back greater then zero so even the combobox thought it had items. In my code the user presses a button, in the code associated with the button, the contents of the box is removed and new content put in the box. When an item is selected from the new content, a different class is called to handle the selection. When I remove the call to the other class, everything works, but with the call to the other class, the combobox fails on removeallitem under the code for the button. If the count is zero, the removeallitems should still not fail, but handle the issue gracefully. This issue is a big problem.
Can you please provide code and the stacktrace of the exception? Anyway, it looks like error in your code, not in Netbeans itself