check for null values (in order to avoid NPEs due to incorrect configuration)