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.
Haven't seen this in the regular refactorings, but with my own, very often as the refactoring preview is displayed, the following exception is thrown from a background thread. The line where it is thrown is: UndoManager.getDefault().watch(extractCES(session.getRefactoringElements()), l); I'm guessing this is some kind of race condition where the session object is not yet initialized (unless UndoManager.getDefault() is returning null, which I doubt). java.lang.NullPointerException at org.netbeans.modules.refactoring.spi.impl.UndoWatcher.watch(UndoWatcher.java:53) at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$8.run(ParametersPanel.java:332) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Please attach whole messages.log
Also see this NPE when I attempt to refactor a Visual Web page1.java from the Files node. Attaching my messages.log which contains the NPE stack. I had been refactoring all the Managed Beans (successfully) from the Projects tab when I switched to the Files tab to refactor the Page1.java page.. java.lang.NullPointerException at org.netbeans.modules.refactoring.spi.impl.UndoWatcher.watch(UndoWatcher.java:53) at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$8.run(ParametersPanel.java:332) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Created attachment 43931 [details] messages.log
Probably side effect of 107051 *** This issue has been marked as a duplicate of 107051 ***