mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-05 23:08:23 +00: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:
parent
d9117d74b3
commit
a3405bb714
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue