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.
From time to time I get the attached NPE and whole code in class become to be in guarded-block. It happened when I start to edit file outside of IDE and than after some changes I switch back to the IDE. Normally file is just reloaded but from time to time... what I described. (only code outside of guarded block is edited outside of IDE). Workaround: close, open file. fresh build, jdk 1.6 (but probably happens also with others). Attaching png and NPE
Created attachment 25344 [details] NPE
Created attachment 25345 [details] screenshot showing the problem
The NPE should be fixed. The problem of the large guarded block is probably a consequence of the NPE or another problem (outside form module).
Happened again. When I returned from VIM the whole form was in guarded block. Since an easy workaround exists and it seems to be not so often -> P4. Really RANDOM.
NEP already fixed, problem of the large guarded block seems to be a duplicate of #66744 *** This issue has been marked as a duplicate of 66744 ***