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 221736 - NullPointerException at com.sun.tools.javac.api.JavacTrees.getElement
Summary: NullPointerException at com.sun.tools.javac.api.JavacTrees.getElement
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-08 15:32 UTC by Ralph Ruijs
Modified: 2015-02-04 03:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 194769


Attachments
stacktrace (4.90 KB, text/plain)
2012-11-08 15:32 UTC, Ralph Ruijs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Ruijs 2012-11-08 15:32:20 UTC
Build: NetBeans IDE Dev (Build 20121108-bf8b633e309c)
VM: OpenJDK 64-Bit Server VM, 23.2-b09, OpenJDK Runtime Environment, 1.7.0_07-b30
OS: Linux

Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.api.JavacTrees.getElement(JavacTrees.java:191)
   at org.netbeans.modules.refactoring.java.plugins.ChangeParamsTransformer.visitMethodInvocation(ChangeParamsTransformer.java:381)
   at org.netbeans.modules.refactoring.java.plugins.ChangeParamsTransformer.visitMethodInvocation(ChangeParamsTransformer.java:82)
   at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1336)
   at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67)
   at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:80)
Comment 1 Ralph Ruijs 2012-11-08 15:32:22 UTC
Created attachment 127405 [details]
stacktrace
Comment 2 Dusan Balek 2012-11-08 15:57:34 UTC
ChangeParamsTransformer should not call Trees.getElement(...) with 'null' value as an argument.
Comment 3 Quality Engineering 2015-02-04 03:29:21 UTC
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.