mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-04-01 12:58:25 +00:00
Spring Version null for NullPointerException
This commit is contained in:
parent
2856f93140
commit
86b5150d88
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user