diff --git a/lib/checkexceptionsafety.cpp b/lib/checkexceptionsafety.cpp index 80ce3ab72..6dba9914b 100644 --- a/lib/checkexceptionsafety.cpp +++ b/lib/checkexceptionsafety.cpp @@ -93,6 +93,8 @@ void CheckExceptionSafety::unsafeNew() if (tok->str() != ")") continue; tok = tok->next(); + if (!tok) + break; if (tok->str() != ":") continue;