Fix possible NPE in legacy callback support.

Change-Id: I5faa155393466e1bc4b2fc1e9417cde91a8be456
1 file changed