Fix breaking logic around getFilename() call
This commit is contained in:
parent
1a7aebb0dd
commit
f105670cec
|
|
@ -180,11 +180,10 @@ public abstract class PropertiesLoaderSupport {
|
||||||
try {
|
try {
|
||||||
is = location.getInputStream();
|
is = location.getInputStream();
|
||||||
|
|
||||||
if (location instanceof AbstractFileResolvingResource) {
|
String filename = (location instanceof AbstractFileResolvingResource) ?
|
||||||
String filename = location.getFilename();
|
location.getFilename() : null;
|
||||||
if (filename != null && filename.endsWith(XML_FILE_EXTENSION)) {
|
if (filename != null && filename.endsWith(XML_FILE_EXTENSION)) {
|
||||||
this.propertiesPersister.loadFromXml(props, is);
|
this.propertiesPersister.loadFromXml(props, is);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (this.fileEncoding != null) {
|
if (this.fileEncoding != null) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue