# HG changeset patch # User Craig Slusher # Date 1232984811 18000 # Node ID f980ea238e7287f030eb76d18fc6413e79d58468 # Parent 7044a26f299e7b9dfe71c8e32ef4872d4b4da2cb it is possible for "this.istr" to be null before this method is called, so we should check for it before attempting to close the stream diff -r 7044a26f299e -r f980ea238e72 dwt/dwthelper/BufferedInputStream.d --- a/dwt/dwthelper/BufferedInputStream.d Fri Jan 02 18:08:02 2009 -0800 +++ b/dwt/dwthelper/BufferedInputStream.d Mon Jan 26 10:46:51 2009 -0500 @@ -98,7 +98,9 @@ } public void close(){ - this.istr.close(); + if (this.istr !is null) { + this.istr.close(); + } }