If there is problem in init(), htable may be null.
Add a null check here.