diff options
author | Geir Storli <geirst@oath.com> | 2018-04-19 12:10:04 +0000 |
---|---|---|
committer | Geir Storli <geirst@oath.com> | 2018-04-19 12:12:22 +0000 |
commit | 9b9eed604e6684c015e9bfd666cd226d969e0b18 (patch) | |
tree | 156215d06eea6aea034343dd837ab3100434db1a /searchsummary | |
parent | 33ef61f554a5768c4457e78207c689fbf5661220 (diff) |
Assert that attribute can be down-casted to tensor attribute.
Diffstat (limited to 'searchsummary')
-rw-r--r-- | searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp b/searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp index 5e8e4ee0584..2feca5fc0c7 100644 --- a/searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp +++ b/searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp @@ -137,6 +137,7 @@ SingleAttrDFW::insertField(uint32_t docid, switch (t) { case BasicType::TENSOR: { const tensor::ITensorAttribute *tv = v.asTensorAttribute(); + assert(tv != nullptr); const auto tensor = tv->getTensor(docid); if (tensor) { vespalib::nbostream str; |