To elaborate on my initial answer, I prefer the "i...
# random
d
To elaborate on my initial answer, I prefer the "impossible to NPE" version to the "might NPE if something doesn't go as expected" version, but maybe you want it to crash if the flag doesn't reflect the buffer's null-ness.