Ignore:
Timestamp:
Feb 8, 2010 11:26:25 AM (10 years ago)
Author:
forrest
Message:

fix seg fault on null problem and messagee in idiot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpSimplex.cpp

    r1502 r1512  
    51275127{
    51285128  //double savedPivotTolerance = factorization_->pivotTolerance();
    5129   int saveQuadraticActivated = objective_->activated();
    5130   objective_->setActivated(0);
     5129  int saveQuadraticActivated = 0;
     5130  if (objective_) {
     5131    saveQuadraticActivated = objective_->activated();
     5132    objective_->setActivated(0);
     5133  } else {
     5134    // create dummy stuff
     5135    assert (!numberColumns_);
     5136    if (!numberRows_)
     5137      problemStatus_=0; // say optimal
     5138    return 0;
     5139  }
    51315140  ClpObjective * saveObjective = objective_;
    51325141  CoinAssert (ifValuesPass>=0&&ifValuesPass<3);
Note: See TracChangeset for help on using the changeset viewer.