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.

Bug 211488 - NullPointerException at org.netbeans.modules.php.editor.model.impl.ModelVisitor.visit
Summary: NullPointerException at org.netbeans.modules.php.editor.model.impl.ModelVisit...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: All All
: P2 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-19 19:56 UTC by leek
Modified: 2012-06-21 11:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 187159


Attachments
stacktrace (5.59 KB, text/plain)
2012-04-19 19:57 UTC, leek
Details
stacktrace (5.71 KB, text/plain)
2012-04-20 03:56 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description leek 2012-04-19 19:56:59 UTC
Build: NetBeans IDE Dev (Build 201204190400)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

User Comments:
leek: Typing a crash report




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.php.editor.model.impl.ModelVisitor.visit(ModelVisitor.java:735)
   at org.netbeans.modules.php.editor.parser.astnodes.ForEachStatement.accept(ForEachStatement.java:113)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:54)
   at org.netbeans.modules.php.editor.model.impl.ModelVisitor.scan(ModelVisitor.java:115)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:61)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:100)
Comment 1 leek 2012-04-19 19:57:04 UTC
Created attachment 118539 [details]
stacktrace
Comment 2 Tomas Mysik 2012-04-20 03:56:27 UTC
Created attachment 118541 [details]
stacktrace

IDE just started -> exception
Comment 3 Tomas Mysik 2012-04-20 03:57:02 UTC
Happens to me reliably immediately after IDE is started. 9 duplicates so far.

Thanks.
Comment 4 Tomas Mysik 2012-04-20 06:27:04 UTC
Please notice that in the IDE log [1] I see another exception [2] which happens before this NPE.

Thanks.
[1] http://statistics.netbeans.org/exceptions/messageslog?id=574756
[2]
WARNING [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]
java.util.ConcurrentModificationException
	at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
	at java.util.AbstractList$Itr.next(AbstractList.java:343)
	at org.netbeans.modules.php.editor.model.impl.ModelVisitor.handleVarComment(ModelVisitor.java:1313)
	at org.netbeans.modules.php.editor.model.impl.ModelVisitor.handleVarComments(ModelVisitor.java:1305)
	at org.netbeans.modules.php.editor.model.impl.ModelVisitor.visit(ModelVisitor.java:322)
	at org.netbeans.modules.php.editor.parser.astnodes.Program.accept(Program.java:92)
	at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:54)
	at org.netbeans.modules.php.editor.model.impl.ModelVisitor.scan(ModelVisitor.java:114)
	at org.netbeans.modules.php.editor.model.Model.getModelVisitor(Model.java:129)
	at org.netbeans.modules.php.editor.model.Model.getFileScope(Model.java:78)
	at org.netbeans.modules.php.editor.index.PHPIndexer.index(PHPIndexer.java:235)
	at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$3.run(Indexable.java:216)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:258)
	at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:214)
[catch] at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$3.run(RepositoryUpdater.java:2743)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:583)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:150)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:134)
	at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:200)
Comment 5 Ondrej Brejla 2012-04-20 09:16:22 UTC
Yes it could be related to that ConcurrentModificationException, it's reported as issue #211425 I'll fix it today.
Comment 6 Ondrej Brejla 2012-04-20 10:17:01 UTC
Fixed in web-main #d7c69a73801d
Comment 7 Quality Engineering 2012-04-21 09:58:28 UTC
Integrated into 'main-golden', will be available in build *201204210400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d7c69a73801d
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #211488 - NullPointerException at org.netbeans.modules.php.editor.model.impl.ModelVisitor.visit
Comment 8 jenifferhomes 2012-06-21 11:49:26 UTC
Happens to me reliably immediately after IDE is started. 9 duplicates so far.

http://www.worldphoto.org/profile/RobertPattinson/
http://pinterest.com/googleclone/samsung-galaxy-note-cases/
http://director-ee.com/profile/cyberworldltd