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 215487 - NullPointerException at org.netbeans.modules.css.visual.RuleNode.createPropertySets
Summary: NullPointerException at org.netbeans.modules.css.visual.RuleNode.createProper...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-13 00:14 UTC by David Konecny
Modified: 2012-08-02 15:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 190703


Attachments
stacktrace (1.50 KB, text/plain)
2012-07-13 00:14 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2012-07-13 00:14:42 UTC
Build: NetBeans IDE Dev (Build 20120712-dc17afef4dc1)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Linux

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.css.visual.RuleNode.createPropertySets(RuleNode.java:113)
   at org.netbeans.modules.css.visual.RuleNode.getPropertySets(RuleNode.java:100)
   at org.openide.explorer.propertysheet.PropertySheet$2.run(PropertySheet.java:613)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)
Comment 1 David Konecny 2012-07-13 00:14:48 UTC
Created attachment 121988 [details]
stacktrace
Comment 2 David Konecny 2012-07-13 01:26:33 UTC
I get this NPE anytime I more caret in editor. It is a showstopper for me. :-) I hotfixed it in 0f8a2d6332e7. It needs proper fix though. Callstack has wrong line number - on latest sources it is coming from line RuleNode.java:136.
Comment 3 Marek Fukala 2012-07-13 12:08:31 UTC
I've just noticed you filed an issue, so closing as fixed:

branch:      easel_css_72
tag:         tip
parent:      227299:2939cd33740e
user:        Marek Fukala <mfukala@netbeans.org>
date:        Fri Jul 13 12:32:13 2012 +0200
summary:     fixed a NPE in RuleNode in empty rules