Project

Profile

Help

Bug #4764

closed

StandardModuleURIResolver can't succeed if its default constructor is used

Added by Norm Tovey-Walsh over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Configuration
Sprint/Milestone:
-
Start date:
2020-09-29
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, trunk
Fix Committed on Branch:
10, trunk
Fixed in Maintenance Release:
Platforms:

Description

At the top of StandardModuleURIResolver, we find:

    /**
     * Create a StandardModuleURIResolver. Although the class is generally used as a singleton,
     * a public constructor is provided so that the class can be named in configuration files and
     * instantiated in the same way as user-written module URI resolvers.
     */

    public StandardModuleURIResolver() {

    }

But that constructor leaves config uninitialized. AFAICT, there's no useful code path through the resolver that doesn't attempt to call a method on config (raising an NPE).

Please register to edit this issue

Also available in: Atom PDF