# IGNITE-709 Fix IgniteCacheP2pUnmarshallingQueryErrorTest
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/9480e8de Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/9480e8de Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/9480e8de Branch: refs/heads/ignite-929 Commit: 9480e8deccfd80d7518f633efdb825d72b47227c Parents: 4b790a8 Author: sevdokimov <sergey.evdoki...@jetbrains.com> Authored: Sun May 24 23:00:39 2015 +0300 Committer: sevdokimov <sergey.evdoki...@jetbrains.com> Committed: Sun May 24 23:00:39 2015 +0300 ---------------------------------------------------------------------- .../cache/IgniteCacheP2pUnmarshallingQueryErrorTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/9480e8de/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheP2pUnmarshallingQueryErrorTest.java ---------------------------------------------------------------------- diff --git a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheP2pUnmarshallingQueryErrorTest.java b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheP2pUnmarshallingQueryErrorTest.java index b2095a8..b171ead 100644 --- a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheP2pUnmarshallingQueryErrorTest.java +++ b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheP2pUnmarshallingQueryErrorTest.java @@ -30,7 +30,8 @@ public class IgniteCacheP2pUnmarshallingQueryErrorTest extends IgniteCacheP2pUnm @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); - cfg.getCacheConfiguration()[0].setIndexedTypes(TestKey.class, String.class); + if (cfg.getCacheConfiguration().length > 0) + cfg.getCacheConfiguration()[0].setIndexedTypes(TestKey.class, String.class); return cfg; }