Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 245D1200B8A for ; Sat, 10 Sep 2016 00:37:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 230ED160ACA; Fri, 9 Sep 2016 22:37:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6D4D2160AC2 for ; Sat, 10 Sep 2016 00:37:23 +0200 (CEST) Received: (qmail 81519 invoked by uid 500); 9 Sep 2016 22:37:22 -0000 Mailing-List: contact issues-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list issues@geode.incubator.apache.org Received: (qmail 81510 invoked by uid 99); 9 Sep 2016 22:37:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2016 22:37:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4760AC0361 for ; Fri, 9 Sep 2016 22:37:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.446 X-Spam-Level: X-Spam-Status: No, score=-5.446 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id J5ZBHNie5JMP for ; Fri, 9 Sep 2016 22:37:21 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 5C92B5FB9B for ; Fri, 9 Sep 2016 22:37:21 +0000 (UTC) Received: (qmail 80523 invoked by uid 99); 9 Sep 2016 22:37:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2016 22:37:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id ABDA72C1B7D for ; Fri, 9 Sep 2016 22:37:20 +0000 (UTC) Date: Fri, 9 Sep 2016 22:37:20 +0000 (UTC) From: "Dan Smith (JIRA)" To: issues@geode.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (GEODE-1881) CompactMapRangeIndex doesn't handle null map keys MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 09 Sep 2016 22:37:24 -0000 Dan Smith created GEODE-1881: -------------------------------- Summary: CompactMapRangeIndex doesn't handle null map keys Key: GEODE-1881 URL: https://issues.apache.org/jira/browse/GEODE-1881 Project: Geode Issue Type: Bug Components: querying Reporter: Dan Smith When indexing map fields that have null keys, geode throws an NPE. Steps to reproduce: 1. Create an index on a map field eg {code} create index --name="idx_positions" --expression="positions[*]" --region="region" {code} 2. Add entries with null keys in the the indexed map {code} entry.positions = new HashMap() entry.positions.put(null, "somevalue); region.put(entry); {code} You will get an NPE {noformat} Caused by: java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) at com.gemstone.gemfire.cache.query.internal.index.CompactMapRangeIndex.saveIndexAddition(CompactMapRangeIndex.java:184) at com.gemstone.gemfire.cache.query.internal.index.CompactMapRangeIndex.saveMapping(CompactMapRangeIndex.java:111) at com.gemstone.gemfire.cache.query.internal.index.AbstractIndex$IMQEvaluator.applyProjection(AbstractIndex.java:1354) at com.gemstone.gemfire.cache.query.internal.index.AbstractIndex$IMQEvaluator.doNestedIterations(AbstractIndex.java:1304) at com.gemstone.gemfire.cache.query.internal.index.AbstractIndex$IMQEvaluator.doNestedIterations(AbstractIndex.java:1315) at com.gemstone.gemfire.cache.query.internal.index.AbstractIndex$IMQEvaluator.evaluate(AbstractIndex.java:1132) ... 44 more {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)