guard against null source references