ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ptupit...@apache.org
Subject ignite git commit: null check
Date Fri, 09 Sep 2016 12:36:21 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-3199-1 22fe0bd98 -> 73f8e2701


null check


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

Branch: refs/heads/ignite-3199-1
Commit: 73f8e270146dabb9a7d6a324ee9e2b25cd450868
Parents: 22fe0bd
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Fri Sep 9 15:36:11 2016 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Fri Sep 9 15:36:11 2016 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/platform/cache/PlatformCache.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/73f8e270/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCache.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCache.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCache.java
index 1bdf139..f9598d6 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCache.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCache.java
@@ -471,6 +471,9 @@ public class PlatformCache extends PlatformAbstractTarget {
                 case OP_EXTENSION:
                     int opCode = reader.readInt();
 
+                    if (extensions == null)
+                        throw new IgniteCheckedException("Cache extensions are not defined.");
+
                     for (PlatformCacheExtension extension : extensions) {
                         PlatformCacheExtensionResult res = extension.invoke(opCode, reader,
cacheRaw);
 


Mime
View raw message