You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lh...@apache.org on 2012/07/24 23:47:01 UTC
svn commit: r1365311 -
/shiro/branches/1.2.x/core/src/main/java/org/apache/shiro/realm/text/PropertiesRealm.java
Author: lhazlewood
Date: Tue Jul 24 21:47:00 2012
New Revision: 1365311
URL: http://svn.apache.org/viewvc?rev=1365311&view=rev
Log:
SHIRO-377: fixed erroneous null check
Modified:
shiro/branches/1.2.x/core/src/main/java/org/apache/shiro/realm/text/PropertiesRealm.java
Modified: shiro/branches/1.2.x/core/src/main/java/org/apache/shiro/realm/text/PropertiesRealm.java
URL: http://svn.apache.org/viewvc/shiro/branches/1.2.x/core/src/main/java/org/apache/shiro/realm/text/PropertiesRealm.java?rev=1365311&r1=1365310&r2=1365311&view=diff
==============================================================================
--- shiro/branches/1.2.x/core/src/main/java/org/apache/shiro/realm/text/PropertiesRealm.java (original)
+++ shiro/branches/1.2.x/core/src/main/java/org/apache/shiro/realm/text/PropertiesRealm.java Tue Jul 24 21:47:00 2012
@@ -163,7 +163,7 @@ public class PropertiesRealm extends Tex
loadProperties();
//we can only determine if files have been modified at runtime (not classpath entries or urls), so only
//start the thread in this case:
- if (this.resourcePath.startsWith(ResourceUtils.FILE_PREFIX) && scheduler != null) {
+ if (this.resourcePath.startsWith(ResourceUtils.FILE_PREFIX) && scheduler == null) {
startReloadThread();
}
}