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.
for example see issue 161790 where between two calls annotations are changed and it was the reason for null pointer, similar effect may be inside unsynchronized method like getPasiveAnnotations where initially annotations cound is verified and later annotations list is created and returned. if any other thread change annotations between getCount() and getPassive() it may cause for example index out of bounds in later logic or creation of return array with -1 size or just incorrect/unexpected results.
We haven't fixed it yet, so I do not expect we will do so in next two releases.