From 4f03c7db24467837aef7a60fe6c11d3a0ba37678 Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 17 Apr 2014 22:13:04 -0400 Subject: [PATCH] [findbugs] Close resource stream in Gitblit GO --- src/main/java/com/gitblit/GitBlitServer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.39.5