adammurdoch 2002/07/04 23:52:16
Modified: aut/src/java/org/apache/aut/vfs/provider/zip
ZipFileSystem.java
Log:
Make sure m_zipFile is always assigned a value.
Revision Changes Path
1.8 +6 -2 jakarta-ant-myrmidon/aut/src/java/org/apache/aut/vfs/provider/zip/ZipFileSystem.java
Index: ZipFileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-ant-myrmidon/aut/src/java/org/apache/aut/vfs/provider/zip/ZipFileSystem.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ZipFileSystem.java 5 Jul 2002 04:08:19 -0000 1.7
+++ ZipFileSystem.java 5 Jul 2002 06:52:16 -0000 1.8
@@ -50,6 +50,7 @@
if( !file.exists() )
{
// Don't need to do anything
+ m_zipFile = null;
return;
}
@@ -115,7 +116,10 @@
// Release the zip file
try
{
- m_zipFile.close();
+ if( m_zipFile != null )
+ {
+ m_zipFile.close();
+ }
}
catch( final IOException e )
{
--
To unsubscribe, e-mail: <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
|