mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8150187: NPE expected if the system identifier is null for CatalogResolver
Reviewed-by: rriggs, lancea
This commit is contained in:
parent
46b0a616ea
commit
1023eb3584
3 changed files with 30 additions and 3 deletions
|
@ -51,6 +51,7 @@ final class CatalogResolverImpl implements CatalogResolver {
|
|||
|
||||
@Override
|
||||
public InputSource resolveEntity(String publicId, String systemId) {
|
||||
CatalogMessages.reportNPEOnNull("systemId", systemId);
|
||||
//Normalize publicId and systemId
|
||||
systemId = Normalizer.normalizeURI(Util.getNotNullOrEmpty(systemId));
|
||||
publicId = Normalizer.normalizePublicId(Normalizer.decodeURN(Util.getNotNullOrEmpty(publicId)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue