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 Dev (Build 20151104-5022c03c8164) VM: Java HotSpot(TM) 64-Bit Server VM, 25.74-b02, Java(TM) SE Runtime Environment, 1.8.0_74-b02 OS: Linux User Comments: jglick: Tried to inline a method with an empty body (one I had just deleted). Expected that to have the effect of deleting the method and its call points. Instead threw an NPE. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.refactoring.java.plugins.TreeDuplicator.duplicate(TreeDuplicator.java:114) at org.netbeans.modules.refactoring.java.plugins.InlineMethodTransformer.translateLastStatement(InlineMethodTransformer.java:878) at org.netbeans.modules.refactoring.java.plugins.InlineMethodTransformer.visitMethodInvocation(InlineMethodTransformer.java:341) at org.netbeans.modules.refactoring.java.plugins.InlineMethodTransformer.visitMethodInvocation(InlineMethodTransformer.java:68) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1483) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
Created attachment 159040 [details] stacktrace
changeset: 600bc44e0a36 user: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> date: Tue May 17 15:58:29 2016 +0200 summary: #258579 - remove invocation when inline empty method
Integrated into 'main-silver', will be available in build *201605180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/600bc44e0a36 User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: #258579 - remove invocation when inline empty method