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 235875

Summary: NullPointerException at org.netbeans.modules.refactoring.spi.impl.ParametersPanel.showDialog
Product: editor Reporter: Marek Fukala <mfukala>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED FIXED    
Severity: normal CC: ralphbenjamin
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 203809
Attachments: stacktrace

Description Marek Fukala 2013-09-12 12:15:12 UTC
Build: NetBeans IDE Dev (Build 20130912-e3e10b127ff2)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Mac OS X

User Comments:
mfukala: trying to invoke "extract inline style" on following code: <div style="color: red" id="hellos" class="sss">




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.refactoring.spi.impl.ParametersPanel.showDialog(ParametersPanel.java:607)
   at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.refresh(RefactoringPanel.java:680)
   at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.<init>(RefactoringPanel.java:168)
   at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.<init>(RefactoringPanel.java:156)
   at org.netbeans.modules.refactoring.spi.ui.UI.openRefactoringUI(UI.java:75)
   at org.netbeans.modules.html.editor.refactoring.HtmlSpecificRefactoringsProvider$2$1.run(HtmlSpecificRefactoringsProvider.java:146)
Comment 1 Marek Fukala 2013-09-12 12:15:13 UTC
Created attachment 139983 [details]
stacktrace
Comment 2 Marek Fukala 2013-09-12 12:57:20 UTC
Caused by ralphbenjamin fixing #235736. It is not defined if the RefactoringUI.getHelpContext() method can return null or not so I'd better add a NPE check to the ParametersPanel code...

I've added the helpcontext to the ExtractInlinedStyleRefactoringUI anyway: web-main#df8c77d46c66
Comment 3 Quality Engineering 2013-09-14 05:14:20 UTC
Integrated into 'main-silver', will be available in build *201309140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/df8c77d46c66
User: Marek Fukala <mfukala@netbeans.org>
Log: #235875 - NullPointerException at org.netbeans.modules.refactoring.spi.impl.ParametersPanel.showDialog