diff --git a/src/graph-steering-method.cc b/src/graph-steering-method.cc index 446388814d27f4f33ca2ac072b2dd4d8cef5c01e..88fbfb143c75e838595e084eb1910fd0f85112cc 100644 --- a/src/graph-steering-method.cc +++ b/src/graph-steering-method.cc @@ -78,6 +78,8 @@ namespace hpp { PathPtr_t GraphSteeringMethod::impl_compute (ConfigurationIn_t q1, ConfigurationIn_t q2) const { graph::Edges_t possibleEdges; + if (!problem_.constraintGraph()) + throw std::invalid_argument ("The constraint graph should be set to use the GraphSteeringMethod"); const graph::Graph& graph = *problem_.constraintGraph (); try { possibleEdges = graph.getEdges