minor fix - null pointer exeption in log