Skip to content

Commit 78364eb

Browse files
committed
Merge pull request #3 from ssrini/patch-1
Fixed wrong condition checking in setAttribute().
2 parents c6706f3 + 3dffef9 commit 78364eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/radiadesign/catalina/session/RedisSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void resetDirtyTracking() {
3636
public void setAttribute(String key, Object value) {
3737
Object oldValue = getAttribute(key);
3838
if ( value == null && oldValue != null
39-
|| oldValue != null && value == null
39+
|| oldValue == null && value != null
4040
|| !value.getClass().isInstance(oldValue)
4141
|| !value.equals(oldValue) ) {
4242
changedAttributes.put(key, value);

0 commit comments

Comments
 (0)