diff --git a/Clp/src/OsiClp/OsiClpSolverInterface.cpp b/Clp/src/OsiClp/OsiClpSolverInterface.cpp index e743c29a..5d8a24ec 100644 --- a/Clp/src/OsiClp/OsiClpSolverInterface.cpp +++ b/Clp/src/OsiClp/OsiClpSolverInterface.cpp @@ -7530,11 +7530,13 @@ void OsiClpSolverInterface::crunch() small = static_cast< ClpSimplexOther * >(modelPtr_)->crunch(rhs, whichRow, whichColumn, nBound, moreBounds, tightenBounds); #ifndef NDEBUG - int nCopy = 3 * numberRows + 2 * numberColumns; - for (int i = 0; i < nCopy; i++) { - if (i>=small->getNumRows()&&i= -CoinMax(numberRows, numberColumns) && whichRow[i] < CoinMax(numberRows, numberColumns)); + if(small) { + int nCopy = 3 * numberRows + 2 * numberColumns; + for (int i = 0; i < nCopy; i++) { + if (i>=small->getNumRows()&&i= -CoinMax(numberRows, numberColumns) && whichRow[i] < CoinMax(numberRows, numberColumns)); + } } #endif smallModel_ = small;