summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorSimon Harrer <simon.harrer@gmail.com>2013-07-18 16:11:04 +0200
committerSimon Harrer <simon.harrer@gmail.com>2013-07-18 16:11:04 +0200
commitfbe265fa787e4be9cb63c6bae2ef30b9400d9afc (patch)
tree8e27614ea55e565d2a61de87d0da0f2601ab9b45 /src/main/java
parent58708c13b6cfc1e8289d1dca698d6d228509c695 (diff)
downloadgitblit-fbe265fa787e4be9cb63c6bae2ef30b9400d9afc.tar.gz
gitblit-fbe265fa787e4be9cb63c6bae2ef30b9400d9afc.zip
Fixes findbugs warning - dereferencing null in exception case
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/gitblit/LogoServlet.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/LogoServlet.java b/src/main/java/com/gitblit/LogoServlet.java
index 166bf40f..c8820ed3 100644
--- a/src/main/java/com/gitblit/LogoServlet.java
+++ b/src/main/java/com/gitblit/LogoServlet.java
@@ -87,7 +87,9 @@ public class LogoServlet extends HttpServlet {
} catch (Exception e) {
e.printStackTrace();
} finally {
- is.close();
+ if(is != null) {
+ is.close();
+ }
}
}
}