From b69912bfabf3f7082c51ebbcdb3ebda4d2de4599 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 19 Feb 2019 19:02:23 +0100 Subject: [PATCH] Fix crash during abstract generation, occuring when no matching fragments are found --- src/rcldb/rclabsfromtext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rcldb/rclabsfromtext.cpp b/src/rcldb/rclabsfromtext.cpp index b093c46c..928dc1f2 100644 --- a/src/rcldb/rclabsfromtext.cpp +++ b/src/rcldb/rclabsfromtext.cpp @@ -272,6 +272,9 @@ public: // (phrase/near), they are dear to the user's heart. list are // sorted, so we never go back in the fragment list (can // always start the search where we previously stopped). + if (m_fragments.empty()) { + return; + } auto fragit = m_fragments.begin(); for (const auto& grpmatch : tboffs) { LOGDEB2("LOOKING FOR FRAGMENT: group: " << grpmatch.offs.first <<