diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 553fb11..2c5f795 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -4979,9 +4979,11 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl { fprintf(stderr, "search path: %s, begin: %s\n", getSearchPathPrintable(b).c_str(), printable(context.results[i].remaining).c_str()); - fprintf(stderr, "search path: %s, end: %s\n", - getSearchPathPrintable(e).c_str(), - printable(context.results[i].endRemaining).c_str()); + if (e != nullptr) { + fprintf(stderr, "search path: %s, end: %s\n", + getSearchPathPrintable(e).c_str(), + printable(context.results[i].endRemaining).c_str()); + } } #endif