Null pointer in logging http error, fixed.