1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-06 14:46:32 +02:00

[trunk] Fix NPE in EssentialsConf on closing the stream.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@989 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo
2011-03-21 12:51:26 +00:00
parent d9117d74b3
commit a3405bb714

View File

@@ -81,7 +81,6 @@ public class EssentialsConf extends Configuration
ostr.write(buffer, 0, length);
length = istr.read(buffer);
}
ostr.close();
istr.close();
}
catch (IOException ex)
@@ -93,7 +92,9 @@ public class EssentialsConf extends Configuration
{
try
{
ostr.close();
if (ostr != null) {
ostr.close();
}
}
catch (IOException ex)
{