Add assertion that object is not null. On android, debugging is hard since by default Eclipse doesn't show stack trace, so assertion is move verbose than SIGSEGV.