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:
Carlos Ruiz 2012-12-11 20:18:20 -05:00
parent 6c06ec9f47
commit 4d83adf841
1 changed files with 1 additions and 1 deletions

View File

@ -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