file null pointer fix, new build