Check the primary buffer pointer before dereferencing it