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);
|
||||
length = istr.read(buffer);
|
||||
}
|
||||
ostr.close();
|
||||
istr.close();
|
||||
}
|
||||
catch (IOException ex)
|
||||
@ -93,8 +92,10 @@ public class EssentialsConf extends Configuration
|
||||
{
|
||||
try
|
||||
{
|
||||
if (ostr != null) {
|
||||
ostr.close();
|
||||
}
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
logger.log(Level.SEVERE, "Failed to close config " + configFile.toString(), ex);
|
||||
|
Loading…
Reference in New Issue
Block a user