correction if callback not defined to pass null pointer exeprion