You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2020/09/15 17:15:28 UTC

[iceberg] branch master updated: Core: Add Precondition check to match other constructor (#1452)

This is an automated email from the ASF dual-hosted git repository.

blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new cf70be8  Core: Add Precondition check to match other constructor (#1452)
cf70be8 is described below

commit cf70be88397efe39e1972350c40116819799e5cb
Author: Kyle Bendickson <98...@users.noreply.github.com>
AuthorDate: Tue Sep 15 10:15:17 2020 -0700

    Core: Add Precondition check to match other constructor (#1452)
---
 core/src/main/java/org/apache/iceberg/BaseCombinedScanTask.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/src/main/java/org/apache/iceberg/BaseCombinedScanTask.java b/core/src/main/java/org/apache/iceberg/BaseCombinedScanTask.java
index 253ddfa..34e6e87 100644
--- a/core/src/main/java/org/apache/iceberg/BaseCombinedScanTask.java
+++ b/core/src/main/java/org/apache/iceberg/BaseCombinedScanTask.java
@@ -30,6 +30,7 @@ public class BaseCombinedScanTask implements CombinedScanTask {
   private final FileScanTask[] tasks;
 
   public BaseCombinedScanTask(FileScanTask... tasks) {
+    Preconditions.checkNotNull(tasks, "tasks cannot be null");
     this.tasks = tasks;
   }