Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit 2c869ca

Browse files
author
Mario
committed
1123 fix npe in StormpathSpringSecurityDisabled
1 parent 54d6793 commit 2c869ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/spring/stormpath-spring-security/src/main/java/com/stormpath/spring/config/StormpathSpringSecurityDisabled.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ public class StormpathSpringSecurityDisabled implements Condition {
2626

2727
@Override
2828
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
29-
return context.getEnvironment().getProperty("stormpath.spring.security.enabled", Boolean.class).equals(Boolean.FALSE);
29+
return context.getEnvironment().getProperty("stormpath.spring.security.enabled", Boolean.class, Boolean.TRUE).equals(Boolean.FALSE);
3030
}
3131
}

0 commit comments

Comments
 (0)