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.
Selected 3 fields and tried Refactor > Encapsulate Fields. One of the selected fields was previously encapsulated. IDE threw java.lang.NullPointerException. Here's the source that caused the problem. public class ServletController { private final UriFromClient uriFromClient; private final ClientCommunicator clientCommunicator; private final UriParser uriParser; public UriFromClient getUriFromClient() { return uriFromClient; } public ServletController(UriFromClient ufm, ClientCommunicator cc, UriParser up) { this.uriFromClient = ufm; this.clientCommunicator = cc; this.uriParser = up; } }
Created attachment 62197 [details] messages.log showing NPE with multiple encapsulate bug
This issue is already fixed and the fix will be included in patch 2. Thanks for your report anyway. *** This issue has been marked as a duplicate of 131619 ***