I have one warning in my Java file, regarding the following snippet of code:
Collection unselectedOptions = new ArrayList();
for (Iterator i = *items.iterator(); *i.hasNext();)
IntelliJ is telling me that items.iterator() would throw a null pointer exception. But as you can see, it won't enter the loop if it is null, because of the null/size check before it.
I know I can't expect IntelliJ to look throughout my code for all instances, but this kind of error makes me double/triple check everything IntelliJ tells me.
I just thought I would post this, in case it really WAS a bug.