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 210355 - NullPointerException at com.sun.tools.javac.api.JavacTrees.getElement
Summary: NullPointerException at com.sun.tools.javac.api.JavacTrees.getElement
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-29 12:32 UTC by aldobrucale
Modified: 2012-04-04 10:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 186438


Attachments
stacktrace (20.13 KB, text/plain)
2012-03-29 12:33 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2012-03-29 12:32:54 UTC
Build: NetBeans IDE Dev (Build 201203280401)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b04
OS: Linux

User Comments:
aldobrucale: Tried to inline a method




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.api.JavacTrees.getElement(JavacTrees.java:191)
   at org.netbeans.modules.refactoring.java.plugins.InlineMethodTransformer$3.visitIdentifier(InlineMethodTransformer.java:388)
   at org.netbeans.modules.refactoring.java.plugins.InlineMethodTransformer$3.visitIdentifier(InlineMethodTransformer.java:384)
   at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:1716)
   at com.sun.source.util.TreeScanner.scan(TreeScanner.java:76)
   at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:80)
Comment 1 aldobrucale 2012-03-29 12:33:01 UTC
Created attachment 117466 [details]
stacktrace
Comment 2 Dusan Balek 2012-03-29 13:03:42 UTC
InlineMethodTransformer should not pass null as an argument to Trees.getElement(...)
Comment 3 Ralph Ruijs 2012-04-03 10:58:27 UTC
Changeset: 36ee008cf2ad
Author:    Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Date:      2012-04-03 12:54
Message:   
Issue #210355 - NullPointerException at com.sun.tools.javac.api.JavacTrees.getElement
Comment 4 Quality Engineering 2012-04-04 10:12:38 UTC
Integrated into 'main-golden', will be available in build *201204040400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/36ee008cf2ad
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: Issue #210355 - NullPointerException at com.sun.tools.javac.api.JavacTrees.getElement