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 219564 - NullPointerException at org.netbeans.modules.web.webkit.debugging.api.css.Style.<init>
Summary: NullPointerException at org.netbeans.modules.web.webkit.debugging.api.css.Sty...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Inspection (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-05 02:38 UTC by augcampos
Modified: 2012-10-15 13:12 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 193081


Attachments
stacktrace (2.11 KB, text/plain)
2012-10-05 02:38 UTC, augcampos
Details
stacktrace (2.11 KB, text/plain)
2012-10-05 02:41 UTC, augcampos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description augcampos 2012-10-05 02:38:45 UTC
Build: NetBeans IDE Dev (Build 201210030002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b02, Java(TM) SE Runtime Environment, 1.8.0-ea-b58
OS: Linux

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.webkit.debugging.api.css.Style.<init>(Style.java:73)
   at org.netbeans.modules.web.webkit.debugging.api.css.Rule.<init>(Rule.java:96)
   at org.netbeans.modules.web.webkit.debugging.api.css.MatchedStyles.<init>(MatchedStyles.java:73)
   at org.netbeans.modules.web.webkit.debugging.api.css.CSS.getMatchedStyles(CSS.java:228)
   at org.netbeans.modules.web.inspect.webkit.ui.CSSStylesSelectionPanel$5.run(CSSStylesSelectionPanel.java:302)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
Comment 1 augcampos 2012-10-05 02:38:47 UTC
Created attachment 125419 [details]
stacktrace
Comment 2 augcampos 2012-10-05 02:41:13 UTC
Created attachment 125420 [details]
stacktrace
Comment 3 Jan Stola 2012-10-15 13:12:01 UTC
The exception shows that there is a missing style attribute in some CSS Rule obtained from the browser. I have no idea how this can happen and what it should mean. The style attribute is not optional according to the description of the protocol.

I have modified the corresponding code to log the whole content of the rule when this happens.

I am closing this issue as fixed because this exception should no longer be thrown (a different and more verbose one will be thrown).

Modified file: http://hg.netbeans.org/web-main/rev/6ed8221e49bc