Avoid possible deref(0) crash.