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 - NullPointerException at org.netbeans.modules.refactoring.spi.impl.ParametersPanel.showDialog
Summary: NullPointerException at org.netbeans.modules.refactoring.spi.impl.ParametersP...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-12 12:15 UTC by Marek Fukala
Modified: 2013-09-14 05:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203809


Attachments
stacktrace (1.69 KB, text/plain)
2013-09-12 12:15 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
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