There are couple of possibilities.
1) Your value is changed by a different thread. From the snippet I suspect you are fairly new coder so it might be the code you copied/included from third party.
2) Square Null prints so fast, "What?" string goes out of bounds (if I remember correctly console holds 500 outputs) and your conclusions are wrong.
I can't think of anything else from what little you showed here.
↧