alanmehio commented on a change in pull request #762:
URL: https://github.com/apache/cxf/pull/762#discussion_r600887844
##########
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:
@amarkevich in this case my check for null will not be needed any more
. Done with thanks
--
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]