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 reported manually by jonavogt. It already has 5 duplicates Build: NetBeans IDE Dev (Build 2010-06-10_09-03-53 ) VM: OpenJDK Client VM, 14.0-b16, OpenJDK Runtime Environment, 1.6.0_18-b18 OS: Linux User Comments: jonavogt: Switched Tabs after coming from external jonavogt: Tested other version jonavogt: Codecompletion kicked in jonavogt: NB is not useable... Everwhere you type you'll get this or a similar error... Even completly crashed my NB Stacktrace: java.lang.NullPointerException at org.netbeans.modules.php.editor.model.impl.ModelVisitor.extendedElements(ModelVisitor.java:202) at org.netbeans.modules.php.editor.model.Model.getExtendedElements(Model.java:70) at org.netbeans.modules.php.editor.parser.PHPParseResult.getModel(PHPParseResult.java:92) at org.netbeans.modules.php.editor.parser.PHPParseResult.getModel(PHPParseResult.java:82) at org.netbeans.modules.php.editor.verification.PHPHintsProvider.computeHints(PHPHintsProvider.java:86) at org.netbeans.modules.csl.hints.infrastructure.HintsTask$1.run(HintsTask.java:118)
Created attachment 99978 [details] stacktrace
Seems like PhpClass.getType return null. Probably it is allowed to return null here. Tomasi, can you check, thanks
testing for null: http://hg.netbeans.org/web-main/rev/b676f1173ca5
(In reply to comment #2) > Seems like PhpClass.getType return null. Probably it is allowed to return null > here. Tomasi, can you check, thanks It is valid. BTW this needs to be a candidate for 6.9.1. This bug is similar to bug #187087.
(In reply to comment #4) > (In reply to comment #2) > > Seems like PhpClass.getType return null. Probably it is allowed to return > > null here. Tomasi, can you check, thanks > > It is valid. BTW this needs to be a candidate for 6.9.1. BTW it is PhpVariable.getType(), not PhpClass (so the null is correct).
this problem doesn't exists in 6.9, I think. Needs to be fixed in 6.9.1 just in case if #186858 should be transplanted into 6.9.1 also
Used tried the latest hudson build, I still get a org.netbeans.modules.parsing.spi.ParseException. I checked my reports and saw that there a couple of exceptions that have that error. 170560 170561 170606 for me they look related to this bug. and the last one comes from the latest build.
not every ParseException is related should be really fixed in recent builds: http://bertram.netbeans.org/hudson/job/PHP-build/ but naturally if it happens to you again then reopen it and please attach the exception(or simply use exception reporter) because then we can fix it, thank you
Please verify bugfix for this bug, so it can be included in release691 repository. Thanks, -R
verified
main #b676f1173ca5 transplanted to main #d208dc31d572
Unable to reproduce. Verified in the latest 6.9.1 build: Product Version: NetBeans IDE 6.9.1 Dev (Build 201007062301) Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279 System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb)