#15 check bean for null before accessing the geometry