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 114246 - npe in css editor
Summary: npe in css editor
Status: RESOLVED DUPLICATE of bug 113258
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-30 13:50 UTC by _ ludo
Modified: 2008-04-28 13:37 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 _ ludo 2007-08-30 13:50:52 UTC
nb 6 daily build latest, on Mac OSX:

for:

.leftSidebar {
  float: left; 
  width: 180px;
  height: 250px;
  border: 1px solid #000000;
}

the visual editor does not show the settings in Border tab (bug 1 ? I guess border: 1px solid #000000; is a valid
setting), and then If I select Border...Top...Solid combobox entry, the correct border-top-style:solid entry is added,
but If I select <Not Set> in the combo box, I see this <not Set> entry in the css file, and then there is a NPE:
java.lang.NullPointerException
	at org.netbeans.modules.css.model.CssModel.updateModel(CssModel.java:286)
	at org.netbeans.modules.css.model.CssModel.access$000(CssModel.java:57)
	at org.netbeans.modules.css.model.CssModel$1.evaluated(CssModel.java:134)
	at org.netbeans.modules.css.model.CssModel$CssModelASTEvaluator.afterEvaluation(CssModel.java:317)
	at org.netbeans.modules.languages.ParserManagerImpl.setChange(ParserManagerImpl.java:174)
	at org.netbeans.modules.languages.ParserManagerImpl.parseAST(ParserManagerImpl.java:231)
	at org.netbeans.modules.languages.ParserManagerImpl.access$100(ParserManagerImpl.java:59)
	at org.netbeans.modules.languages.ParserManagerImpl$1.run(ParserManagerImpl.java:145)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 1 _ ludo 2007-08-30 13:53:01 UTC
I would recommend to test the CSS visual editor in Read/Write mode for all the CSS entries that are defined in the jMaki
layouts...
See https://ajax.dev.java.net for these css files, or install the Nb plugin for jmaki and see the predefined styles
there for a real set of css files to test.
Comment 2 Marek Fukala 2007-09-03 12:49:02 UTC

*** This issue has been marked as a duplicate of 113258 ***