Closed Bug 556480 Opened 14 years ago Closed 14 years ago

AutoCompleteUtils error

Categories

(Firefox for Android Graveyard :: General, defect)

Fennec 1.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: vingtetun, Assigned: mfinkle)

Details

Attachments

(1 file)

Error: AutoCompleteUtils: Could not write to cache file: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIFileOutputStream.init]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: file:///home/steakdepapillon/Devel/fennec/mobilebase/mobile/dist/bin/components/AutoCompleteCache.js :: saveCache :: line 182"  data: no]
Source File: file:///home/steakdepapillon/Devel/fennec/mobilebase/mobile/dist/bin/components/AutoCompleteCache.js
Line: 192

Since a few days I seeing this a lot
Does this happen only at startup every time? Only at startup after a new build?
I'm seeing it every times on desktop but only after a delay, not at startup, I'll try to pay more attention to it next time.
(I wonder if this file is corrupted or not on my computer)
Attached patch patchSplinter Review
I introduced this error when I added the bookmark listener. The AutoCompleteUtils class is not initialized so the file is null.

This patch puts a check to not initialize twice and it initializes from the bookmark listener.

Tests run without any errors now.
Assignee: nobody → mark.finkle
Attachment #440765 - Flags: review?(21)
Comment on attachment 440765 [details] [diff] [review]
patch

Good catch!

I'll see in the next few day if I see the error again.
Attachment #440765 - Flags: review?(21) → review+
pushed:
http://hg.mozilla.org/mobile-browser/rev/ef28c4586cc5
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: