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 171520 - NullPointerException at com.sun.tools.javac.api.JavacTrees.getElement
Summary: NullPointerException at com.sun.tools.javac.api.JavacTrees.getElement
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Wicket (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@javaee
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-04 18:47 UTC by massimo
Modified: 2011-04-30 21:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 119543


Attachments
stacktrace (4.82 KB, text/plain)
2009-09-04 18:47 UTC, massimo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description massimo 2009-09-04 18:47:28 UTC
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)
Comment 1 massimo 2009-09-04 18:47:34 UTC
Created attachment 87138 [details]
stacktrace
Comment 2 Dusan Balek 2009-09-15 08:49:42 UTC
'null' value should not be passed to Trees.getElement(...) call. Reassigning.
Comment 3 Exceptions Reporter 2011-04-30 21:33:30 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=119543