Ran into this recently and thought it might be interesting.
Can you try and spot the bug and the possible error that can occur with the following lines of code?
Solution in the next post.