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 124346 - Runtime Exception on Invalid Colour Name in NBS File
Summary: Runtime Exception on Invalid Colour Name in NBS File
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: languages (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-20 22:54 UTC by grrussel
Modified: 2008-07-30 12:58 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description grrussel 2007-12-20 22:54:24 UTC
Using an invalid colour name (e.g. grey) causes a NumberFormatException: For input string: "grey"
when loading a file to be highlighted by the NBS language description

It would be preferable to have some pre-checking (in building the project), or tolerance for invalid values.
Comment 1 grrussel 2007-12-20 22:55:04 UTC
NBS language fragment

COLOR:line_comment: {
    foreground_color: "grey";
}
Comment 2 Jan Becicka 2008-02-29 13:02:03 UTC
This is more enhancement than bug.