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.
This issue was originally marked as duplicate of issue 159538, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related. Build: NetBeans IDE Dev (Build 200911070201) VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04 OS: Windows XP, 5.1, x86 User Comments: GUEST: Was closing tabs from two different projects GUEST: closed a file and opened projects window GUEST: Open project with SVN support GUEST: Closing a tab GUEST: closing editor tab GUEST: Closed all file windows GUEST: closing tabs (cmd w) GUEST: deleting index.php after creating a new php-project ota: The editor was idling in the background with no files open. mchl: Close all tabs using Ctrl+W shortcut GUEST: Closed an editor window after committing to svn fzamboj: thrown after I saved and closed a php file GUEST: Uploading a file to an ftp GUEST: Just closed editors pressing Ctrl-W GUEST: close tab GUEST: Closed a file from editor lygrie: after I start up the program I closed all the documents, that were open and I wanted to use an other project... GUEST: I was opening folder in projects panel while task scaning was working GUEST: just opened ide, then closed a file that was previously left opened. GUEST: Closed all 3 tabs. GUEST: I open php project GUEST: Opening an existing project. It happened during the Scanning process. GUEST: closing tabs with files in editor GUEST: Opening a PHP file GUEST: Closing tabs after i restarted netbeans blakenzoe: I started a debug session on a PHP project. I am not sure if this occurred when the IDE hit a breakpoint or not. GUEST: I closed the last tab I had open. :) ajpetersen: Closing a tab right after it gains focus... I assume since the file is closed before parsing can finish, this error pops up. GUEST: just closing a file GUEST: Closing a lot of files after each other GUEST: closing a few editor windows GUEST: Just opened a php file (actually file was opened automatically on startup) and then closed it instantly. GUEST: use smart jump to other class. darkvamp1976: While scanning my (new opened) project GUEST: I have 2 php project opened. And I sets up editor options ibnsaeed: Just closed 2 files. GUEST: Closed two tabs out of three open tabs. The third tab had all text highlighted. Error appeared as soon as the text of the third tab was visible. kolen: Created PHP project from existing sources GUEST: closing file zosorock: opening file through the projects window GUEST: closing php files menic: error occurs after netbeans starup menic: thrown after close tab GUEST: task scanning dclozier: Closing tabs. GUEST: Seems that I sometimes get this error when I am closing multiple documents using the (x) button on each file's tab. GUEST: closing a file menic: after close window matheusfinotti: At this moment i have an file opened at the IDE and searching things on the internet. I have the Star Page and my file(php code) openned. Good Look GUEST: creating new php project from existing source files. GUEST: Just created a new PHP project - scanning GUEST: Synchronizing with SVN menic: closing windows in editor GUEST: Closed a few tabs with the middle mouse button. Exception occured when I closed the last one. jeffl8n: Saving and closing several files that I made one change to one at a time. GUEST: press ctrl+f4 when one document was opened ploppy: closing a tab of a php file udioron: while closing a file GUEST: closing a open doc GUEST: Started up the IDE and closed some open files from the previous run. GUEST: Opening and closing a file under my project within 5 seconds GUEST: Opening file tree beberlei: Exception occured during startup and indexing phase. ndwolf: opening a new project, scanning files ploppy: closing lots of tabs GUEST: closing documents with command-W matheusfinotti: Just open an project ota: Closed open files with the keyboard shortcut (ctrl+w). GUEST: Closing some files GUEST: Open a File blakenzoe: I updated a set of symfony model files outside of the NetBeans IDE, then ALT-TABbed back into NetBeans and closed a PHP file in my editor. eduardonamba: it occours when I did close files with crt+F4 GUEST: I just closed the last open file by clicking on the little x in the file-tab slapo: Pressed ctrl+f while Netbeans was searching the project. GUEST: Closing php file in project GUEST: i was closing tabs with what i remember was .phtml files (html with embded php, templates) GUEST: Cheanging folder structure in the project aoutside of netbeans ide GUEST: ive used 'go back to file' option [left arrow, right arrow]. then closed all files. GUEST: Just completed an svn update GUEST: Closing multiple windows rros: I opened an existing php project, the error occurred during the "scanning project" phase avsej: Open Navigator on php file (about 4000 lines) GUEST: I click close all document GUEST: All I did was click at the end of an </a> closing tag and the program froze. costinb: Just closed a php file inkubus08: trying to open a recent project. oopman: Created a new project group GUEST: Working on a PHP Project GUEST: Don't really know. Went to the bathroom and this happend. GUEST: Loading IDE for first time. Last project autoloaded and was scanning projects. GUEST: closing some existing documents and start page GUEST: Open file and close before it finished open GUEST: just closing all the windows. The bug appeared when the last one was closed Stacktrace: java.lang.NullPointerException at org.netbeans.modules.php.editor.parser.PhpStructureScanner.folds(PhpStructureScanner.java:185) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.addTree(GsfFoldManager.java:496) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.scan(GsfFoldManager.java:492) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.access$200(GsfFoldManager.java:299) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:395) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
Created attachment 91109 [details] stacktrace
I am sorry but I can't reproduce. @radek: you have any idea or I should be trying more? Thanks.
239 duplicates ... P2 at least
raise to P1
Fixed: http://hg.netbeans.org/web-main/rev/b6400e272dbd Justification: NPE, many duplicates, unpleasant, trivial fix Tomasi, please review
The fix seems OK to me.
Product Version: NetBeans IDE Dev (Build 091120-1260d7851277) Java: 1.5.0_17-ea; Java HotSpot(TM) 64-Bit Server VM 1.5.0_17-ea-b01 anyway, it's not easy to reproduce this issue and I'd say it's a bit random. If you reproduce this issue then reopen this bug please. According to developers, fix is safe and handles the issue so I can consider this as verified.
Integrated into 'main-golden', will be available in build *200911211401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b6400e272dbd User: Radek Matous <rmatous@netbeans.org> Log: #176919 - NullPointerException at org.netbeans.modules.php.editor.parser.PhpStructureScanner.folds