commit | b7551d1a2e3dcaef63a7ccdf3efe18b345685b23 | [log] [tgz] |
---|---|---|
author | Till Westmann <tillw@apache.org> | Tue Jul 05 09:19:15 2016 -0700 |
committer | Till Westmann <tillw@apache.org> | Tue Jul 05 20:41:32 2016 -0700 |
tree | 63ca6049a139714186dbb36056f572eaa0b290f1 | |
parent | 640705a79a58518dd78dc60154445868a20558d9 [diff] |
avoid NPE Change-Id: I31db965351e04444e86d3bc55d7e6dbdfded3fa2 Reviewed-on: https://asterix-gerrit.ics.uci.edu/972 Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Reviewed-by: Cameron Samak <csamak@apache.org> Reviewed-by: Murtadha Hubail <hubailmor@gmail.com>
diff --git a/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/MetadataNode.java b/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/MetadataNode.java index 3b432a6..2cd8c46 100644 --- a/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/MetadataNode.java +++ b/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/MetadataNode.java
@@ -576,9 +576,6 @@ IValueExtractor<Dataverse> valueExtractor = new MetadataEntityValueExtractor<Dataverse>(tupleReaderWriter); List<Dataverse> results = new ArrayList<Dataverse>(); searchIndex(jobId, MetadataPrimaryIndexes.DATAVERSE_DATASET, null, valueExtractor, results); - if (results.isEmpty()) { - return null; - } return results; } catch (IndexException | IOException e) { throw new MetadataException(e);