Fixed #4 : Throw NullPointerException when the object to log is Null