When VelocityDetector is called with null as input, it throws an exception. Instead, it should just return false.