Change-Id: I92785294ef0e49477e8c33e30285b7d5978910a9
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-2759
}
public <T> T convert(String fullFileName, Class<T> className) throws YamlConversionException {
}
public <T> T convert(String fullFileName, Class<T> className) throws YamlConversionException {
- if (!new File(fullFileName).exists()) {
+ final File file = new File(fullFileName);
+ if (!file.exists() || file.isDirectory()) {
log.warn(EcompLoggerErrorCode.UNKNOWN_ERROR,"","",
"The file {} cannot be found. Ignore reading configuration.", fullFileName);
return null;
log.warn(EcompLoggerErrorCode.UNKNOWN_ERROR,"","",
"The file {} cannot be found. Ignore reading configuration.", fullFileName);
return null;