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 253548 - NullPointerException at org.netbeans.modules.refactoring.spi.impl.PreviewManager$NewDiffSource.setNewText
Summary: NullPointerException at org.netbeans.modules.refactoring.spi.impl.PreviewMana...
Status: RESOLVED FIXED
Alias: None
Product: editor
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-07-17 15:40 UTC by misterm
Modified: 2015-07-22 17:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 218607


Attachments
stacktrace (2.86 KB, text/plain)
2015-07-17 15:40 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2015-07-17 15:40:33 UTC
Build: NetBeans IDE Dev (Build 20150716-7a93174cf75e)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b26
OS: Windows 8

User Comments:
misterm: .

misterm: Clicking on a refactoring preview

misterm: .




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.refactoring.spi.impl.PreviewManager$NewDiffSource.setNewText(PreviewManager.java:283)
   at org.netbeans.modules.refactoring.spi.impl.PreviewManager.refresh(PreviewManager.java:141)
   at org.netbeans.modules.refactoring.spi.SimpleRefactoringElementImplementation.showPreview(SimpleRefactoringElementImplementation.java:133)
   at org.netbeans.modules.refactoring.spi.impl.CheckNodeListener.openDiff(CheckNodeListener.java:353)
   at org.netbeans.modules.refactoring.spi.impl.CheckNodeListener.mouseClicked(CheckNodeListener.java:181)
   at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
Comment 1 misterm 2015-07-17 15:40:36 UTC
Created attachment 154699 [details]
stacktrace
Comment 2 Ralph Ruijs 2015-07-20 06:44:49 UTC
changeset:   a28dfb1605f5
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Mon Jul 20 08:43:41 2015 +0200
summary:     253548 - NullPointerException at org.netbeans.modules.refactoring.spi.impl.PreviewManager$NewDiffSource.setNewText
Comment 3 alied 2015-07-22 17:20:35 UTC
After checking, the refactor was correct. I had to check and uncheck the refactor preview for it to show correctly.