IDEMPIERE-455 Discover and fix FindBugs problems / Pattern OS_OPEN_STREAM / Fix problem created closing the stream before reading it
This commit is contained in:
parent
6c06ec9f47
commit
4d83adf841
|
@ -156,6 +156,7 @@ public class KeyStoreMgt
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
is = new FileInputStream (m_file);
|
is = new FileInputStream (m_file);
|
||||||
|
m_keyStore.load(is, m_password);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -170,7 +171,6 @@ public class KeyStoreMgt
|
||||||
is = null;
|
is = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_keyStore.load(is, m_password);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return null; // does not exist
|
return null; // does not exist
|
||||||
|
|
Loading…
Reference in New Issue