Skip to content

Commit 0dee3e6

Browse files
author
kevin.w.wall
committed
Make FindBugs happy.
1 parent 7db1783 commit 0dee3e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/main/java/org/owasp/esapi/reference/crypto/DefaultEncryptedProperties.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ public static void main(String[] args) throws Exception {
155155
} while (key != null && key.length() > 0);
156156
ep.store(out, "Encrypted Properties File");
157157
} finally {
158-
try { in.close(); } catch( Exception e ) {}
159-
try { out.close(); } catch( Exception e ) {}
158+
try { if ( in != null ) in.close(); } catch( Exception e ) {}
159+
try { if ( out != null ) out.close(); } catch( Exception e ) {}
160160
}
161161

162162
Iterator i = ep.keySet().iterator();

0 commit comments

Comments
 (0)