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 200473 - NullPointerException at org.netbeans.modules.css.lib.api.model.Rule.getRuleCloseBracketOffset
Summary: NullPointerException at org.netbeans.modules.css.lib.api.model.Rule.getRuleCl...
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 200930 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-28 13:11 UTC by Martin Fousek
Modified: 2011-10-31 14:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 180207


Attachments
stacktrace (1.17 KB, text/plain)
2011-07-28 13:11 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2011-07-28 13:11:42 UTC
Build: NetBeans IDE Dev (Build 20110728-8102e293bc4b)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Linux

User Comments:
marfous: pasted some classname into .css file




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.css.lib.api.model.Rule.getRuleCloseBracketOffset(Rule.java:108)
   at org.netbeans.modules.css.lib.api.model.Stylesheet.ruleForOffset(Stylesheet.java:153)
   at org.netbeans.modules.css.editor.CssEditorSupport.updateSelectedRule(CssEditorSupport.java:242)
   at org.netbeans.modules.css.editor.CssEditorSupport.access$600(CssEditorSupport.java:77)
   at org.netbeans.modules.css.editor.CssEditorSupport$2.run(CssEditorSupport.java:204)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
Comment 1 Martin Fousek 2011-07-28 13:11:47 UTC
Created attachment 109675 [details]
stacktrace
Comment 2 Martin Fousek 2011-07-28 13:17:34 UTC
Really annoying - cannot write anything to the .css file.
Comment 3 Marek Fukala 2011-07-28 14:38:46 UTC
fixed in web-main#9d06a9494ab2
Comment 4 Quality Engineering 2011-07-29 14:08:59 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/9d06a9494ab2
User: Marek Fukala <mfukala@netbeans.org>
Log: #200473 - NullPointerException at org.netbeans.modules.css.lib.api.model.Rule.getRuleCloseBracketOffset
Comment 5 Vladimir Riha 2011-09-23 08:05:23 UTC
verified - no problems with pasting classnames or css code into css file
Comment 6 Marek Fukala 2011-10-31 14:06:35 UTC
*** Bug 200930 has been marked as a duplicate of this bug. ***