From 8ec0820f22ef9c1e250272db70d8fd288eff087b Mon Sep 17 00:00:00 2001
From: Florent Lamiraux <florent@laas.fr>
Date: Fri, 12 Dec 2014 14:08:55 +0100
Subject: [PATCH] Update to commit e7866c4 in hpp-core.

---
 src/graph/statistics.cc | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/graph/statistics.cc b/src/graph/statistics.cc
index 56d58b96..841381a1 100644
--- a/src/graph/statistics.cc
+++ b/src/graph/statistics.cc
@@ -153,9 +153,14 @@ namespace hpp {
 
       void LeafHistogram::add (const core::NodePtr_t& n)
       {
-        iterator it = insert
-	  (LeafBin (constraint_->configProjector ()->rightHandSideFromConfig
-		    (*n->configuration ())));
+	iterator it;
+	if (constraint_->configProjector ()) {
+	  it = insert
+	    (LeafBin (constraint_->configProjector ()->rightHandSideFromConfig
+		      (*n->configuration ())));
+	} else {
+	  it = insert (LeafBin (vector_t (0)));
+	}
         it->push_back (n);
         if (numberOfObservations()%10 == 0) {
           hppDout (info, *this);
-- 
GitLab