fix segv for file == NULL