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.
Build: NetBeans IDE 6.7 (Build 200906241340) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP, 5.1, x86 User Comments: massimo: Try this: after writing in the editor the identifier for an object, say a wicket DropDownChoice object, type "." (dot) to get the popup showing the list of available methods, like for example "add". At that point a red box is going to surround the suggested parameter that goes in add() and you are supposed to click ENTER to accept it. If you now hit backspace instead of ENTER to delete the parameter (because for example, you don't like its name) you get this NPE. Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.api.JavacTrees.getElement(JavacTrees.java:182) at org.netbeans.modules.web.wicket.tree.AssignmentTracer.visitReturn(AssignmentTracer.java:63) at org.netbeans.modules.web.wicket.tree.AssignmentTracer.visitReturn(AssignmentTracer.java:31) at com.sun.tools.javac.tree.JCTree$JCReturn.accept(JCTree.java:1224) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:76) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:80)
Created attachment 87138 [details] stacktrace
'null' value should not be passed to Trees.getElement(...) call. Reassigning.
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=119543