Fixed NULL problem

release/4.3a0
Frank Dellaert 2009-10-27 20:22:02 +00:00
parent e37e771c8e
commit 94da98411c
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ Ordering FactorGraph<Factor,Config>::getOrdering() const {
// loop over all factors = rows
for (int i = 0; i < n_row; i++) {
if (factors_[i]==NULL) continue;
list<Key> keys = factors_[i]->keys();
BOOST_FOREACH(Key key, keys) columns[key].push_back(i);
nrNonZeros+= keys.size();