butm/file_tm.c: check for null pointer before dereferencing