ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject incubator-ignite git commit: IGNITE-379 Fix NPE.
Date Tue, 24 Mar 2015 11:27:58 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-45 5aabf2237 -> 6d0d4ed50


IGNITE-379 Fix NPE.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/6d0d4ed5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/6d0d4ed5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/6d0d4ed5

Branch: refs/heads/ignite-45
Commit: 6d0d4ed5022cba0332d1450a2e233a59f05162a8
Parents: 5aabf22
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Tue Mar 24 14:27:27 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Tue Mar 24 14:27:53 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/cache/GridCacheStoreManager.java     | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/6d0d4ed5/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheStoreManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheStoreManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheStoreManager.java
index 27428a7..5ac0d39 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheStoreManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheStoreManager.java
@@ -786,11 +786,11 @@ public class GridCacheStoreManager extends GridCacheManagerAdapter {
      * Clears session holder.
      */
     void endSession(@Nullable IgniteInternalTx tx) {
-        if (sesHolder != null)
-            sesHolder.set(null);
-
         if (tx == null)
             store.sessionEnd(true);
+
+        if (sesHolder != null)
+            sesHolder.set(null);
     }
 
     /**
@@ -800,6 +800,8 @@ public class GridCacheStoreManager extends GridCacheManagerAdapter {
         if (sesHolder == null)
             return;
 
+        assert sesHolder.get() == null;
+
         SessionData ses;
 
         if (tx != null) {


Mime
View raw message