fix null pointer with blocking queue