You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by av...@apache.org on 2016/02/24 11:27:36 UTC
[4/6] ignite git commit: IGNITE-2683 In indexing kernal context can
be null in tests. (cherry picked from commit 3172b4d)
IGNITE-2683 In indexing kernal context can be null in tests.
(cherry picked from commit 3172b4d)
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/37d1d5bd
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/37d1d5bd
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/37d1d5bd
Branch: refs/heads/ignite-2683-quashed
Commit: 37d1d5bd0fbcfcc20f979526dc96beaa6e916c0f
Parents: 292d5b5
Author: sboikov <sb...@gridgain.com>
Authored: Sat Feb 20 14:33:45 2016 +0300
Committer: Anton Vinogradov <av...@apache.org>
Committed: Wed Feb 24 13:19:15 2016 +0300
----------------------------------------------------------------------
.../ignite/internal/processors/query/h2/IgniteH2Indexing.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/37d1d5bd/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java
----------------------------------------------------------------------
diff --git a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java
index 5dd1089..cae1a9f 100644
--- a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java
+++ b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java
@@ -1501,7 +1501,9 @@ public class IgniteH2Indexing implements GridQueryIndexing {
}
@Override public Object deserialize(byte[] bytes) throws Exception {
- return marshaller.unmarshal(bytes, U.resolveClassLoader(ctx.config()));
+ ClassLoader clsLdr = ctx != null ? U.resolveClassLoader(ctx.config()) : null;
+
+ return marshaller.unmarshal(bytes, clsLdr);
}
};
}