Changeset: 334b4aa94b1d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/334b4aa94b1d
Modified Files:
        sql/storage/bat/bat_storage.c
Branch: default
Log Message:

Defensive lines


diffs (15 lines):

diff --git a/sql/storage/bat/bat_storage.c b/sql/storage/bat/bat_storage.c
--- a/sql/storage/bat/bat_storage.c
+++ b/sql/storage/bat/bat_storage.c
@@ -2392,9 +2392,9 @@ double_elim_col(sql_trans *tr, sql_colum
        if (col && (d=ATOMIC_PTR_GET(&col->data))!=NULL && col->storage_type) {
                if (d->cs.st == ST_DICT) {
                        BAT *b = bind_col(tr, col, QUICK);
-                       if (b->ttype == TYPE_bte)
+                       if (b && b->ttype == TYPE_bte)
                                de = 1;
-                       else if (b->ttype == TYPE_sht)
+                       else if (b && b->ttype == TYPE_sht)
                                de = 2;
                }
        } else if (col && ATOMIC_PTR_GET(&col->data)) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to