asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ti...@apache.org
Subject asterixdb git commit: avoid NPE
Date Wed, 06 Jul 2016 03:42:08 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master 640705a79 -> b7551d1a2


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>


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

Branch: refs/heads/master
Commit: b7551d1a2e3dcaef63a7ccdf3efe18b345685b23
Parents: 640705a
Author: Till Westmann <tillw@apache.org>
Authored: Tue Jul 5 09:19:15 2016 -0700
Committer: Till Westmann <tillw@apache.org>
Committed: Tue Jul 5 20:41:32 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/asterix/metadata/MetadataNode.java   | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/b7551d1a/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/MetadataNode.java
----------------------------------------------------------------------
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 @@ public class MetadataNode implements IMetadataNode {
             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);


Mime
View raw message