fixed null sqs bug in threadwork,java