comparison dwt/dwthelper/BufferedInputStream.d @ 330:f980ea238e72

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
author Craig Slusher <cslush@gmail.com>
date Mon, 26 Jan 2009 10:46:51 -0500
parents 184ab53b7785
children
comparison
equal deleted inserted replaced
329:7044a26f299e 330:f980ea238e72
96 implMissing( __FILE__, __LINE__ ); 96 implMissing( __FILE__, __LINE__ );
97 return false; 97 return false;
98 } 98 }
99 99
100 public void close(){ 100 public void close(){
101 this.istr.close(); 101 if (this.istr !is null) {
102 this.istr.close();
103 }
102 } 104 }
103 105
104 106
105 } 107 }
106 108