check pointer: lf thread for some reason is not created, it will result in segfault