From: James Moger Date: Fri, 18 Apr 2014 02:13:04 +0000 (-0400) Subject: [findbugs] Close resource stream in Gitblit GO X-Git-Tag: v1.5.0~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4f03c7db24467837aef7a60fe6c11d3a0ba37678;p=gitblit.git [findbugs] Close resource stream in Gitblit GO --- diff --git a/src/main/java/com/gitblit/GitBlitServer.java b/src/main/java/com/gitblit/GitBlitServer.java index 4191e9b4..b40e21f8 100644 --- a/src/main/java/com/gitblit/GitBlitServer.java +++ b/src/main/java/com/gitblit/GitBlitServer.java @@ -198,7 +198,9 @@ public class GitBlitServer { e.printStackTrace(); } finally { try { - is.close(); + if (is != null) { + is.close(); + } } catch (IOException e) { e.printStackTrace(); }