shufeike - 2012-03-27

i have met the same bug recently.i guess the loop should add one more constrain that the tempNode should not be null.Cause when the net condition is so poor that the new node is the oldest .then it was compared with the node(null) before the queue head ,which is a logic error.