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 - NullPointerException at org.netbeans.modules.refactoring.java.plugins.PushDownTransformer.visitMemberSelect
Summary: NullPointerException at org.netbeans.modules.refactoring.java.plugins.PushDow...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-25 12:11 UTC by Michel Graciano
Modified: 2015-09-09 12:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219422


Attachments
stacktrace (4.60 KB, text/plain)
2015-08-25 12:11 UTC, Michel Graciano
Details
Sample project (3.28 KB, application/zip)
2015-08-25 12:13 UTC, Michel Graciano
Details
stacktrace (4.60 KB, text/plain)
2015-08-26 16:20 UTC, Michel Graciano
Details
stacktrace (4.60 KB, text/plain)
2015-09-01 11:45 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
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