amarkevich commented on a change in pull request #762:
URL: https://github.com/apache/cxf/pull/762#discussion_r600844434
##########
File path: core/src/main/java/org/apache/cxf/bus/spring/BusEntityResolver.java
##########
@@ -82,7 +82,7 @@ public InputSource resolveEntity(String publicId, String
systemId) throws SAXExc
String resourceLocation = schemaMappings.get(systemId);
if (resourceLocation != null && publicId == null) {
Resource resource = new ClassPathResource(resourceLocation,
classLoader);
- if (resource.exists()) {
+ if (resource.exists() && source != null) {
Review comment:
its better to move null check from L78 to L82
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]