am 10f22587: am 6a81c4be: Fix NPE in sample code.

* commit '10f225872313bd36188eaeec5c2417a8cb9ce1da':
  Fix NPE in sample code.