Changeset 81


Ignore:
Timestamp:
Jan 2, 2003 12:10:52 PM (17 years ago)
Author:
jpfasano
Message:

modifed so matrix() does not crash when used with empty solver interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ClpModel.hpp

    r77 r81  
    215215   /// Matrix (if not ClpPackedmatrix be careful about memory leak
    216216   inline CoinPackedMatrix * matrix() const {
    217       return matrix_->getPackedMatrix();
     217     if ( matrix_ == NULL ) return NULL;
     218     else return matrix_->getPackedMatrix();
    218219   }
    219220   /// Number of elements in matrix
Note: See TracChangeset for help on using the changeset viewer.