diff options
author | James Moger <james.moger@gitblit.com> | 2014-04-17 22:13:04 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-04-17 23:08:07 -0400 |
commit | 4f03c7db24467837aef7a60fe6c11d3a0ba37678 (patch) | |
tree | 69ce49881a7a29a2633c70b8670b770d2c67b2f8 /src | |
parent | 116223aa54bd8842d46363e003eef268467ac78f (diff) | |
download | gitblit-4f03c7db24467837aef7a60fe6c11d3a0ba37678.tar.gz gitblit-4f03c7db24467837aef7a60fe6c11d3a0ba37678.zip |
[findbugs] Close resource stream in Gitblit GO
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/gitblit/GitBlitServer.java | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } |