fix logging for null values
Merge pull request #13 from olahol/master

Fix crash when logging null