Modernize codebase by replacing NULL with nullptr am: e353f25791 am: e5f8733e8c
am: 986171c539

Change-Id: I648790808b6a39f51b05bad5a9c6ec359f5a7306