]> source.dussan.org Git - gitblit.git/commitdiff
Fixes findbugs warning - dereferencing null in exception case 98/head
authorSimon Harrer <simon.harrer@gmail.com>
Thu, 18 Jul 2013 14:11:04 +0000 (16:11 +0200)
committerSimon Harrer <simon.harrer@gmail.com>
Thu, 18 Jul 2013 14:11:04 +0000 (16:11 +0200)
src/main/java/com/gitblit/LogoServlet.java

index 166bf40fae6755e7acfcee3104ac8ffec4f5ee4b..c8820ed39b70fa7af2f8c1b3d77ad7a2939ef716 100644 (file)
@@ -87,7 +87,9 @@ public class LogoServlet extends HttpServlet {
                } catch (Exception e) {\r
                        e.printStackTrace();\r
                } finally {\r
-                       is.close();\r
+                       if(is != null) {\r
+                               is.close();\r
+                       }\r
                }\r
        }\r
 }\r