diff --git a/ingest/src/ingest/bufr/NorBufr.cpp b/ingest/src/ingest/bufr/NorBufr.cpp index a1d05abc..d4e1177f 100644 --- a/ingest/src/ingest/bufr/NorBufr.cpp +++ b/ingest/src/ingest/bufr/NorBufr.cpp @@ -75,11 +75,14 @@ uint64_t NorBufr::uncompressDescriptor(std::list::iterator &it, Descriptor ¤t_desc = desc[s].back(); if (tabB->at(*it).unit().find("CCITTIA5") != std::string::npos) { - std::string bs; - bs = NorBufrIO::getBitStr(sb, NBINC * 8, bits); + std::vector bl; + if (NBINC) { + std::string bs; + bs = NorBufrIO::getBitStr(sb, NBINC * 8, bits); - std::vector bl = NorBufrIO::getBitVec(sb, NBINC * 8, bits); - ucbits.insert(ucbits.end(), bl.begin(), bl.end()); + bl = NorBufrIO::getBitVec(sb, NBINC * 8, bits); + ucbits.insert(ucbits.end(), bl.begin(), bl.end()); + } int bitdiff = dm.datawidth() - NBINC * 8; if (bitdiff) { DescriptorMeta *dmn = new DescriptorMeta;