Move assert to after NULL check, otherwise we deref NULL in the assert.

Klocwork #307
1 file changed