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 235442

Summary: NullPointerException at org.netbeans.modules.web.browser.ui.HtmlPreviewElement.dettach
Product: platform Reporter: Ralph Ruijs <ralphbenjamin>
Component: Embedded BrowserAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED FIXED    
Severity: normal CC: mmirilovic, vriha
Priority: P2 Keywords: 7.4_HR_FIX
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 203534
Attachments: stacktrace

Description Ralph Ruijs 2013-09-03 08:49:47 UTC
Build: NetBeans IDE Dev (Build 20130903-bd999cb3ba8f)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b12
OS: Mac OS X

User Comments:
ralphbenjamin: Opened a single html file, outside of any project.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.browser.ui.HtmlPreviewElement.dettach(HtmlPreviewElement.java:308)
   at org.netbeans.modules.web.browser.ui.HtmlPreviewElement.componentClosed(HtmlPreviewElement.java:194)
   at org.netbeans.core.multiview.MultiViewPeer.peerComponentClosed(MultiViewPeer.java:328)
   at org.netbeans.core.multiview.MultiViewCloneableTopComponent.componentClosed(MultiViewCloneableTopComponent.java:124)
   at org.openide.windows.WindowManager.componentCloseNotify(WindowManager.java:322)
   at org.netbeans.core.windows.WindowManagerImpl.notifyTopComponentClosed(WindowManagerImpl.java:1156)
Comment 1 Ralph Ruijs 2013-09-03 08:49:48 UTC
Created attachment 139609 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2013-09-03 09:52:24 UTC
core-main 222af40ca711

This needs to be backported to release74 branch.
Comment 3 Marian Mirilovic 2013-09-03 11:05:22 UTC
(In reply to Stanislav Aubrecht from comment #2)
> core-main 222af40ca711
> 
> This needs to be backported to release74 branch.

I agree, please follow : http://wiki.netbeans.org/NetBeans_74_HighResistance
Comment 4 Quality Engineering 2013-09-04 01:44:06 UTC
Integrated into 'main-silver', will be available in build *201309040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/222af40ca711
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #235442 - make sure HTML preview is disabled by default
Comment 5 Stanislav Aubrecht 2013-09-04 09:09:21 UTC
Transplanted to release74 branch as dc44b7e9348a