diff --git a/Src/DiffWrapper.cpp b/Src/DiffWrapper.cpp index b0887a75d2d..0515eb2d2bb 100644 --- a/Src/DiffWrapper.cpp +++ b/Src/DiffWrapper.cpp @@ -506,6 +506,8 @@ int CDiffWrapper::PostFilter(PostFilterContext& ctxt, change* thisob, const file change* script = diff_2_buffers_xdiff( lineDataLeft.c_str(), lineDataLeft.length(), lineDataRight.c_str(), lineDataRight.length(), m_xdlFlags); + if (!script) + return 0; auto TranslateLineNumbers = [](change* thisob, change* script) {