null pointer exception check
fix fast method.