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 234155 - AssertionError at org.netbeans.modules.css.visual.PropertyUtils.getDeclarationId
Summary: AssertionError at org.netbeans.modules.css.visual.PropertyUtils.getDeclarationId
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-09 00:02 UTC by dheffelfinger
Modified: 2015-02-19 07:52 UTC (History)
15 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202470


Attachments
stacktrace (2.06 KB, text/plain)
2013-08-09 00:02 UTC, dheffelfinger
Details
stacktrace (2.50 KB, text/plain)
2014-01-02 09:51 UTC, Tomas Mysik
Details
stacktrace (2.49 KB, text/plain)
2014-01-13 14:33 UTC, Stepan Zebra
Details
stacktrace (2.51 KB, text/plain)
2014-04-26 19:50 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dheffelfinger 2013-08-09 00:02:30 UTC
Build: NetBeans IDE Dev (Build 201308072300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Linux

User Comments:
KhArtNJava: <Please provide a description of the problem or the steps to reproduce>

KhArtNJava: <Please provide a description of the problem or the steps to reproduce>

KhArtNJava: <Please provide a description of the problem or the steps to reproduce>

GUEST: As best I can tell, I was editing a css file.  I keep getting java.lang.AssertionErrors.

dheffelfinger: hit ctrl+shift+1 to locate a file in the projects window

GUEST: css




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.css.visual.PropertyUtils.getDeclarationId(PropertyUtils.java:118)
   at org.netbeans.modules.css.visual.RuleEditorNode.fireContextChanged(RuleEditorNode.java:220)
   at org.netbeans.modules.css.visual.RuleEditorPanel.setRule(RuleEditorPanel.java:577)
   at org.netbeans.modules.css.visual.RuleEditorPanel.setModel(RuleEditorPanel.java:527)
   at org.netbeans.modules.css.visual.api.RuleEditorController$1.run(RuleEditorController.java:167)
   at org.openide.util.Mutex.doEvent(Mutex.java:1348)
Comment 1 dheffelfinger 2013-08-09 00:02:31 UTC
Created attachment 138468 [details]
stacktrace
Comment 2 Marek Fukala 2013-08-09 08:34:45 UTC
I'm not sure what could lead to the assertion w/o a reproducible case. I've at least improved the assertion so it dumps some more information.

changeset:   260800:90691f150f2a
summary:     #234155 - better assertion message
Comment 3 Quality Engineering 2013-08-10 02:04:56 UTC
Integrated into 'main-silver', will be available in build *201308092300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/90691f150f2a
User: Marek Fukala <mfukala@netbeans.org>
Log: #234155 - better assertion message
Comment 4 Tomas Mysik 2014-01-02 09:51:37 UTC
Created attachment 143560 [details]
stacktrace

ide just started with one SASS and one CSS file opened
Comment 5 Stepan Zebra 2014-01-13 14:33:46 UTC
Created attachment 143905 [details]
stacktrace

opened a simple css file:
style.css
body {
    text-align: center;
}
canvas {
    border: 1px solid;
}
Comment 6 Maksim Khramov 2014-04-26 19:50:54 UTC
Created attachment 146959 [details]
stacktrace

Open and scroll through bootstrap.css file from html5 bootstrap template project
Comment 7 Marian Mirilovic 2015-02-04 10:26:23 UTC
114 duplicates -> P2
Comment 8 Jan Stola 2015-02-18 10:59:46 UTC
Fixed/workarounded by: https://hg.netbeans.org/web-main/rev/3723f9a722cb
Comment 9 Quality Engineering 2015-02-19 07:52:10 UTC
Integrated into 'main-silver', will be available in build *201502190509* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3723f9a722cb
User: Jan Stola <jstola@netbeans.org>
Log: #234155: Avoiding a potential AssertionError.