Added default color and check for null objects