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 258950 - NullPointerException at org.netbeans.modules.refactoring.java.plugins.InlineMethodTransformer.visitCompilationUnit
Summary: NullPointerException at org.netbeans.modules.refactoring.java.plugins.InlineM...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-21 13:06 UTC by Maksim Khramov
Modified: 2016-05-17 01:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 223669


Attachments
stacktrace (3.54 KB, text/plain)
2016-04-21 13:06 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2016-04-21 13:06:30 UTC
Build: NetBeans IDE Dev (Build 201604180001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.102-b02, Java(TM) SE Runtime Environment, 1.8.0_102-ea-langtools-nightly-h8272-20160410-b02
OS: Windows 7

User Comments:
mkhramov: Exception occurs on attempt to inline getter method generated through Annotation processed code. The geter is created with lombok project @Getter annotation




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.refactoring.java.plugins.InlineMethodTransformer.visitCompilationUnit(InlineMethodTransformer.java:101)
   at org.netbeans.modules.refactoring.java.plugins.InlineMethodTransformer.visitCompilationUnit(InlineMethodTransformer.java:68)
   at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:563)
   at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:72)
   at org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.scan(RefactoringVisitor.java:213)
   at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$TransformTask.run(JavaRefactoringPlugin.java:452)
Comment 1 Maksim Khramov 2016-04-21 13:06:32 UTC
Created attachment 159375 [details]
stacktrace
Comment 2 Ralph Ruijs 2016-05-16 08:13:21 UTC
changeset:   0e45176a9b0b
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Mon May 16 10:10:32 2016 +0200
summary:     #258950 - dont inline synthetic trees
Comment 3 Quality Engineering 2016-05-17 01:46:59 UTC
Integrated into 'main-silver', will be available in build *201605170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0e45176a9b0b
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #258950 - dont inline synthetic trees