Project

Profile

Help

Revision 8879ca2a

Added by Norman Tovey-Walsh 5 months ago

Fix #4764 by checking for config before calling allowed URI test

View differences:

latest10/hej/net/sf/saxon/lib/StandardModuleURIResolver.java
96 96
                    se.setIsStaticError(true);
97 97
                    throw se;
98 98
                }
99
                if (!config.getAllowedUriTest().test(absoluteURI)) {
99
                if (config != null && !config.getAllowedUriTest().test(absoluteURI)) {
100 100
                    throw new XPathException("URI scheme '" + absoluteURI.getScheme() + "' has been disallowed");
101 101
                }
102 102

  

Also available in: Unified diff