#7 fixed null pointer exception with logging
Merge pull request #8 from jaspervp/7_log

#7 fixed null pointer exception with logging