NULL check in process error