This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7067 - A NullPointerException may be triggered in Resource.parseUri when baseUri is null
Summary: A NullPointerException may be triggered in Resource.parseUri when baseUri is ...
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-29 13:02 UTC by fd
Modified: 2009-06-29 13:59 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-06-29 13:02:54 UTC
When a URI contains unwise characters, Resource.parseUri attempts to encode them and try again. The "try again" code takes for granted that baseUri is not null. It may not be the case!

Example: running the Checker on http://live.com throws the exception (a link contains a "," character in the query string part).
Comment 1 fd 2009-06-29 13:59:49 UTC
Fixed Resource.parseUri to handle the case when baseUri is null.