Modernize codebase by replacing NULL with nullptr am: 3712b27403
am: 903e3a7e1b

Change-Id: I01b1130ace9880bb133de338faad8343443ce6e4