Move NULLCHECK outside of ccall. Oops.