From 4d83adf84104c12c52ab65fc2a1a50e8e52807c4 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 11 Dec 2012 20:18:20 -0500 Subject: [PATCH] IDEMPIERE-455 Discover and fix FindBugs problems / Pattern OS_OPEN_STREAM / Fix problem created closing the stream before reading it --- org.adempiere.install/src/org/compiere/install/KeyStoreMgt.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.install/src/org/compiere/install/KeyStoreMgt.java b/org.adempiere.install/src/org/compiere/install/KeyStoreMgt.java index 67511f2b7e..99926afd6c 100644 --- a/org.adempiere.install/src/org/compiere/install/KeyStoreMgt.java +++ b/org.adempiere.install/src/org/compiere/install/KeyStoreMgt.java @@ -156,6 +156,7 @@ public class KeyStoreMgt try { is = new FileInputStream (m_file); + m_keyStore.load(is, m_password); } catch (Exception e) { @@ -170,7 +171,6 @@ public class KeyStoreMgt is = null; } } - m_keyStore.load(is, m_password); } else return null; // does not exist