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 7.3 (Build 201306052037) VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18 OS: Windows 8 User Comments: GUEST: Encapsulate Filed while selected a bunch of random code GUEST: Gives the exception when trying to create Getters and Setters. On click of Encapsulate fields. Netbeans running on Linux Mint 13. GUEST: Trying to encapsulate fields from inner class: class ScenarioPoint { Instant time; ISpeed speed; IAzimuth direction; } GUEST: Unable to refactor setter and getter GUEST: I tried to encapsulate the fields and the exception happened. GUEST: Tried to encapsulate fields GUEST: i was creating a class i wrote some fields, and before create a constructor, i selected some Strings and i pressed right clic on them then i chose the option refactor and Encapsulate fields. nhamhs: Refactor not working. GUEST: I wasn't doing anything. I just opened the project and there it was! Stacktrace: java.lang.NullPointerException at org.netbeans.modules.refactoring.java.ui.EncapsulateFieldUI.create(EncapsulateFieldUI.java:242) at org.netbeans.modules.refactoring.java.ui.ContextAnalyzer$1.createRefactoringUI(ContextAnalyzer.java:117) at org.netbeans.modules.refactoring.java.ui.ContextAnalyzer$TextComponentTask.run(ContextAnalyzer.java:376) at org.netbeans.modules.refactoring.java.ui.ContextAnalyzer$TextComponentTask.run(ContextAnalyzer.java:301) at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:488) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:584)
Created attachment 145489 [details] stacktrace
changeset: 581681b0bc95 user: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> date: Fri Jul 18 14:33:35 2014 +0200 summary: #242219 - NullPointerException at org.netbeans.modules.refactoring.java.ui.EncapsulateFieldUI.create
Integrated into 'main-silver', will be available in build *201407300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/581681b0bc95 User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: #242219 - NullPointerException at org.netbeans.modules.refactoring.java.ui.EncapsulateFieldUI.create