diff --git a/test/test_fcl_sphere_capsule.cpp b/test/test_fcl_sphere_capsule.cpp
index 2111a9ca4a6d985c1394ecfc656077c82e90a2f5..eb4a421d3c5268f3d290624f6e5895e1143a4a2f 100644
--- a/test/test_fcl_sphere_capsule.cpp
+++ b/test/test_fcl_sphere_capsule.cpp
@@ -160,7 +160,9 @@ BOOST_AUTO_TEST_CASE(Sphere_Capsule_Distance_test_collision)
 	Capsule capsule (50, 200.);
 	Transform3f capsule_transform (Vec3f (0., 0., 100));
 
-	BOOST_CHECK (!solver.shapeDistance(sphere1, sphere1_transform, capsule, capsule_transform, NULL));
+	FCL_REAL distance;
+
+	BOOST_CHECK (!solver.shapeDistance(sphere1, sphere1_transform, capsule, capsule_transform, &distance));
 }
 
 BOOST_AUTO_TEST_CASE(Sphere_Capsule_Distance_test_separated)