null_pointer_check

增加几个空值检测，增强程序的健壮性，防止在JDK6上面挂掉
null pointer  check on JDK6
null pointer check on JDK6