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 254705

Summary: NullPointerException at org.netbeans.modules.refactoring.java.plugins.PushDownTransformer.visitMemberSelect
Product: java Reporter: Michel Graciano <hmichel>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: VERIFIED FIXED    
Severity: normal CC: hmichel, jkovalsky
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219422
Attachments: stacktrace
Sample project
stacktrace
stacktrace

Description Michel Graciano 2015-08-25 12:11:55 UTC
Build: NetBeans IDE Dev (Build 20150825-31bf754c7e0d)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Linux

User Comments:
hmichel: Trying to use Push Down refactoring




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.refactoring.java.plugins.PushDownTransformer.visitMemberSelect(PushDownTransformer.java:136)
   at org.netbeans.modules.refactoring.java.plugins.PushDownTransformer.visitMemberSelect(PushDownTransformer.java:80)
   at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1909)
   at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
   at org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.scan(RefactoringVisitor.java:213)
   at org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.scan(RefactoringVisitor.java:97)
Comment 1 Michel Graciano 2015-08-25 12:11:57 UTC
Created attachment 155620 [details]
stacktrace
Comment 2 Michel Graciano 2015-08-25 12:13:15 UTC
Created attachment 155621 [details]
Sample project

Steps to reproduce:
1. Open class SuperClass
2. Put cursor on sampleMethod2 method
3. Go to refactor > Push Down
4. Select Preview and you will see the exception
Comment 3 Michel Graciano 2015-08-26 16:20:43 UTC
Created attachment 155668 [details]
stacktrace

Trying 'Pull Down' refactoring
Comment 4 Jiri Prox 2015-08-27 09:27:41 UTC
repropducible
Comment 5 Michel Graciano 2015-09-01 11:45:15 UTC
Created attachment 155797 [details]
stacktrace

Trying the 'Push Down' refactoring
Comment 6 Ralph Ruijs 2015-09-08 14:12:06 UTC
changeset:   0fea230757df
tag:         tip
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Tue Sep 08 16:08:15 2015 +0200
summary:     #254705 - NullPointerException at org.netbeans.modules.refactoring.java.plugins.PushDownTransformer.visitMemberSelect
Comment 7 Quality Engineering 2015-09-09 01:23:26 UTC
Integrated into 'main-silver', will be available in build *201509090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0fea230757df
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #254705 - NullPointerException at org.netbeans.modules.refactoring.java.plugins.PushDownTransformer.visitMemberSelect
Comment 8 Michel Graciano 2015-09-09 12:19:28 UTC
v. Build 20150909-6ff4934e5978