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 240140

Summary: NullPointerException at org.netbeans.modules.web.inspect.webkit.RemoteStyleSheetCache$StyleSheetFileObject.getName
Product: web Reporter: Nonlone
Component: InspectionAssignee: Jan Stola <jstola>
Status: RESOLVED FIXED    
Severity: normal CC: mkozeny, monsto, pjiricka, roddyp
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 202295
Attachments: stacktrace
stacktrace

Description Nonlone 2014-01-09 08:27:58 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
GUEST: Debugin Struts application having Chrome integration plug-in enabled

GUEST: ...

monsto: had html in a tab, scss code in a floating tab. pressed f6 to enable the inspector with installed chrome. the page displays wrong. a few seconds later the problem report popped.

Nonlone: Debug WebApp in Chrome just show a red info icon about this

GUEST: Inspecting elements in Chrome having enabled "Inspect in NetBeans Mode"

monsto: using html5 chrome plugin, these are the steps I took:

chose the netbeans inspector from the rclick menu
clicked in netbeans to expand the auto-hidden Dom Browser sidebar
clicked back into the chrome window

Then it crashed. took about 15s before the reporter came up.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.inspect.webkit.RemoteStyleSheetCache$StyleSheetFileObject.getName(RemoteStyleSheetCache.java:219)
   at org.openide.filesystems.FileObject.getNameExt(FileObject.java:286)
   at org.openide.filesystems.MIMESupport$CachedFileObject.getNameExt(MIMESupport.java:476)
   at org.netbeans.modules.openide.filesystems.declmime.FileElement$Type$FileName.match(FileElement.java:401)
   at org.netbeans.modules.openide.filesystems.declmime.FileElement$Type.accept(FileElement.java:653)
   at org.netbeans.modules.openide.filesystems.declmime.FileElement$Type.access$300(FileElement.java:156)
Comment 1 Nonlone 2014-01-09 08:28:00 UTC
Created attachment 143738 [details]
stacktrace
Comment 2 Petr Jiricka 2014-01-28 14:25:09 UTC
Created attachment 144471 [details]
stacktrace

Inspecting Polymer application.
Comment 3 Jan Stola 2014-07-09 13:43:38 UTC
Fixed by http://hg.netbeans.org/web-main/rev/7f6b506346c4