Can the ``file`` become suddendly ``null``? If yes, you need to protect yourself against this.