mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 15:08:18 +01: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
@ -81,7 +81,6 @@ public class EssentialsConf extends Configuration
|
|||||||
ostr.write(buffer, 0, length);
|
ostr.write(buffer, 0, length);
|
||||||
length = istr.read(buffer);
|
length = istr.read(buffer);
|
||||||
}
|
}
|
||||||
ostr.close();
|
|
||||||
istr.close();
|
istr.close();
|
||||||
}
|
}
|
||||||
catch (IOException ex)
|
catch (IOException ex)
|
||||||
@ -93,7 +92,9 @@ public class EssentialsConf extends Configuration
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ostr.close();
|
if (ostr != null) {
|
||||||
|
ostr.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (IOException ex)
|
catch (IOException ex)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user