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 211484

Summary: NullPointerException at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$16.run
Product: editor Reporter: MackSix
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: RESOLVED FIXED    
Severity: normal CC: aldobrucale, jocke, MackSix, stefan79
Priority: P1    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 187200
Attachments: stacktrace
Project to use for reproduction.
stacktrace
stacktrace
stacktrace
stacktrace

Description MackSix 2012-04-19 17:26:58 UTC
Build: NetBeans IDE Dev (Build 201204190400)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows Vista

User Comments:
MackSix: 1) Refactor>>Invert Boolean 2) Ctrl+Z to Undo caused this Exception




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$16.run(ParametersPanel.java:897)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
   at java.awt.EventQueue.access$000(EventQueue.java:101)
   at java.awt.EventQueue$3.run(EventQueue.java:666)
   at java.awt.EventQueue$3.run(EventQueue.java:664)
Comment 1 MackSix 2012-04-19 17:27:02 UTC
Created attachment 118532 [details]
stacktrace
Comment 2 MackSix 2012-04-19 17:32:05 UTC
Created attachment 118533 [details]
Project to use for reproduction.

1.) Open project
2.) Open InvertBoolean.java
3.) Put cursor on "Boolean" on line 13 and Refactor>>Invert Boolean.
4.) Undo with button or Ctrl+Z.

This exception occurs.
Comment 3 MackSix 2012-04-19 17:41:26 UTC
Created attachment 118534 [details]
stacktrace

Undo Refactor>>Extract Superclass caused this.
Comment 4 aldobrucale 2012-04-20 10:59:29 UTC
Created attachment 118564 [details]
stacktrace

undo change method parameter in constructor
Comment 5 Jan Becicka 2012-04-20 12:13:57 UTC
Already fixed I hope.
http://hg.netbeans.org/jet-main/rev/c9a4a0086e95
Comment 6 Jan Becicka 2012-04-23 07:36:45 UTC
*** Bug 211485 has been marked as a duplicate of this bug. ***
Comment 7 Jan Becicka 2012-04-23 07:36:55 UTC
*** Bug 211505 has been marked as a duplicate of this bug. ***
Comment 8 stefan79 2012-04-23 07:47:24 UTC
Created attachment 118608 [details]
stacktrace

Undo from Method-Parameter.
Comment 9 Exceptions Reporter 2012-04-23 07:47:39 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=187200
Comment 10 aldobrucale 2012-04-23 14:41:27 UTC
Created attachment 118639 [details]
stacktrace

Undo move class