Check null ptr in elf