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 226425 - NullPointerException at org.netbeans.modules.php.editor.verification.TooManyLinesHint$CheckVisitor.countLines
Summary: NullPointerException at org.netbeans.modules.php.editor.verification.TooManyL...
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-20 21:05 UTC by Jiri Prox
Modified: 2013-08-29 12:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 198824


Attachments
stacktrace (4.21 KB, text/plain)
2013-02-20 21:05 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2013-02-20 21:05:36 UTC
Build: NetBeans IDE Dev (Build 201302192300)
VM: Java HotSpot(TM) Client VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b10
OS: Linux

User Comments:
jiriprox: NPE when editing php file




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.php.editor.verification.TooManyLinesHint$CheckVisitor.countLines(TooManyLinesHint.java:431)
   at org.netbeans.modules.php.editor.verification.TooManyLinesHint$FunctionLinesHint$FunctionVisitor.checkBlock(TooManyLinesHint.java:140)
   at org.netbeans.modules.php.editor.verification.TooManyLinesHint$FunctionLinesHint$FunctionVisitor.visit(TooManyLinesHint.java:120)
   at org.netbeans.modules.php.editor.parser.astnodes.FunctionDeclaration.accept(FunctionDeclaration.java:116)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:144)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:391)
Comment 1 Jiri Prox 2013-02-20 21:05:38 UTC
Created attachment 131638 [details]
stacktrace
Comment 2 Ondrej Brejla 2013-02-25 09:01:19 UTC
Fixed in web-main #7384682f2f97
Comment 3 Quality Engineering 2013-02-26 05:24:07 UTC
Integrated into 'main-golden', will be available in build *201302252300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7384682f2f97
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #226425 - NullPointerException at org.netbeans.modules.php.editor.verification.TooManyLinesHint$CheckVisitor.countLines
Comment 4 Jiri Prox 2013-08-29 12:37:32 UTC
v.