Fixed null pointer exception in Transaction toString() method