Merge "Check handle for nullptr"