]> source.dussan.org Git - gitblit.git/commitdiff
[findbugs] Close resource stream in Gitblit GO
authorJames Moger <james.moger@gitblit.com>
Fri, 18 Apr 2014 02:13:04 +0000 (22:13 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 18 Apr 2014 03:08:07 +0000 (23:08 -0400)
src/main/java/com/gitblit/GitBlitServer.java

index 4191e9b4d34e7f0c6c1efadd03d7af7807744570..b40e21f821889914acf15176d1667dbf0b95ddfc 100644 (file)
@@ -198,7 +198,9 @@ public class GitBlitServer {
                                e.printStackTrace();
                        } finally {
                                try {
-                                       is.close();
+                                       if (is != null) {
+                                               is.close();
+                                       }
                                } catch (IOException e) {
                                        e.printStackTrace();
                                }