Closed
Bug 329159
Opened 18 years ago
Closed 18 years ago
StringIndexOutOfBoundsException in Mozilla.getGREPathFromRegistryFile
Categories
(Core Graveyard :: Java to XPCOM Bridge, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jhpedemonte, Assigned: jhpedemonte)
Details
(Keywords: fixed1.8.1, verified1.8.0.5)
Attachments
(2 files)
1.28 KB,
text/plain
|
Details | |
1.03 KB,
patch
|
mkaply
:
review+
dveditz
:
approval1.8.0.5+
|
Details | Diff | Splinter Review |
On some Windows machines, when calling Mozilla.getGREPathWithProperties(), the user gets an exception: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(Unknown Source) at java.lang.String.substring(Unknown Source) at org.mozilla.xpcom.Mozilla.getGREPathFromRegistryFile(Mozilla.java:344) at org.mozilla.xpcom.Mozilla.main(Mozilla.java:885)
Assignee | ||
Comment 1•18 years ago
|
||
This is the file created as a result of running 'regedit /e jx-registry.bad "HKEY_LOCAL_MACHINE\\Software\\mozilla.org\\GRE"' in the Mozilla.getGREPathWithProperties(). Parsing this file results in an exception.
Assignee | ||
Comment 2•18 years ago
|
||
The key Software\mozilla.org\GRE can itself have values, and will therefore be returned by the INIParser. So we just use the key length to skip over this key.
Attachment #213808 -
Flags: review?(benjamin)
Comment 3•18 years ago
|
||
Comment on attachment 213808 [details] [diff] [review] patch r=mkaply
Attachment #213808 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 4•18 years ago
|
||
Checked in to trunk. -> FIXED
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•18 years ago
|
Keywords: fixed1.8.1
Assignee | ||
Comment 5•18 years ago
|
||
Comment on attachment 213808 [details] [diff] [review] patch Asking for 1.8.0.5 approval. XULRunner only. This patch fixes an exception that a few people are seeing. Would be good to get in to the XULRunner 1.8.0.x nightlies.
Attachment #213808 -
Flags: approval1.8.0.5?
Comment 6•18 years ago
|
||
Comment on attachment 213808 [details] [diff] [review] patch approved for 1.8.0 branch, a=dveditz for drivers
Attachment #213808 -
Flags: approval1.8.0.5? → approval1.8.0.5+
Updated•18 years ago
|
Flags: blocking1.8.0.5+
Updated•18 years ago
|
Keywords: fixed1.8.0.5 → verified1.8.0.5
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•