/*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
if (flags.write_draining)
return;
- if (!theFile->canWrite())
+ if (!theFile || !theFile->canWrite())
return;
flags.write_draining = true;