diff --git a/owlps-positioning/src/stock.cc b/owlps-positioning/src/stock.cc index 9fc3407..b508aba 100644 --- a/owlps-positioning/src/stock.cc +++ b/owlps-positioning/src/stock.cc @@ -520,6 +520,10 @@ void Stock::regenerate_reference_points() continue ; const Point3D &ref_coord = ref->second.get_coordinates() ; + // Skip the AP if the associated reference point does + // not exist yet: + if (! reference_point_exists(ref_coord)) + continue ; double angle = rx_coord.angle(current_point, ref_coord) ; pair