Closed Bug 298053 Opened 19 years ago Closed 19 years ago

directoryservice.nsIProperties.has("nonexistant") should return false instead of throwing an exception

Categories

(Core :: XPCOM, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mcsmurf, Assigned: timeless)

References

()

Details

Attachments

(1 file)

Get a nsIProperties instance (here
Components.classes["@mozilla.org/file/directory_service;1"].getService(nsIProperties);).
Then prop.has("XYZ") always seems to return NS_ERROR_FAILURE. See URL for how it
is supposed to work.
Summary: nsIProperties.has returns NS_ERROR_FAILURE → directoryservice.nsIProperties.has("nonexistant") should return false instead of throwing an exception
Assignee: dougt → timeless
Status: NEW → ASSIGNED
Attachment #186645 - Flags: review?(dougt)
Attachment #186645 - Flags: review?(dougt) → review+
Attachment #186645 - Flags: approval1.8b3?
Attachment #186645 - Flags: approval1.8b3? → approval1.8b3+
checked in
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: