Spring Version null for NullPointerException

This commit is contained in:
Rob Winch 2018-07-14 21:05:48 -05:00
parent 2856f93140
commit 86b5150d88

View File

@ -110,7 +110,7 @@ public class SpringSecurityCoreVersion {
Properties properties = new Properties();
try {
properties.load(SpringSecurityCoreVersion.class.getClassLoader().getResourceAsStream("META-INF/spring-security.versions"));
} catch (IOException e) {
} catch (IOException | NullPointerException e) {
return null;
}
return properties.getProperty("org.springframework:spring-core");