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 223392 - NPE in CSSStylesPanel$RuleEditorTask$1.run(CSSStylesPanel.java:419)
Summary: NPE in CSSStylesPanel$RuleEditorTask$1.run(CSSStylesPanel.java:419)
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Inspection (show other bugs)
Version: 7.3
Hardware: All All
: P4 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-06 13:42 UTC by Jan Stola
Modified: 2012-12-06 13:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2012-12-06 13:42:10 UTC
1. Run HTML file in a browser with NetBeans integration.
2. Select some element that is matched by a rule with no CSS properties.
3. Select this rule in CSS Styles view
   => the following exception is printed into the console

java.lang.NullPointerException
at o.n.m.web.inspect.webkit.ui.CSSStylesPanel$RuleEditorTask$1
   .run(CSSStylesPanel.java:419)
at o.n.m.css.model.api.Model$1.run(Model.java:273)
at org.openide.util.Mutex.readAccess(Mutex.java:367)
at o.n.m.css.model.api.Model.runReadTask(Model.java:270)
at o.n.m.web.inspect.webkit.ui.CSSStylesPanel$RuleEditorTask
   .run(CSSStylesPanel.java:410)
at o.n.m.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:584)
at o.n.m.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:153)
at o.n.m.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:137)
at o.n.m.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:201)
at o.n.m.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:198)
at o.n.m.masterfs.filebasedfs.utils.FileChangedManager
   .priorityIO(FileChangedManager.java:176)
at o.n.m.masterfs.providers.ProvidedExtensions
   .priorityIO(ProvidedExtensions.java:360)
at o.n.m.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
at o.n.m.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:198)

Caused: org.netbeans.modules.parsing.spi.ParseException
at o.n.m.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:206)
at o.n.m.parsing.api.ParserManager.parse(ParserManager.java:104)
[catch] at o.n.m.web.inspect.webkit.ui.CSSStylesPanel$3$1
.run(CSSStylesPanel.java:265)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2043)
Comment 1 Jan Stola 2012-12-06 13:59:30 UTC
Fixed - the attached exception is no longer thrown/printed into the console.

Modified file: http://hg.netbeans.org/web-main/rev/531d1de092e3