]> source.dussan.org Git - gitblit.git/commitdiff
Fix NPE in GitblitClient 02/102/1
authorJames Moger <james.moger@gitblit.com>
Fri, 13 Jun 2014 12:22:27 +0000 (08:22 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 13 Jun 2014 12:22:27 +0000 (08:22 -0400)
releases.moxie
src/main/java/com/gitblit/client/GitblitClient.java

index c473d4fc05375f86f8d1b22a5ec4f17660b01f8a..7314160d18c65f994f0d57b5eb81667608f7f285 100644 (file)
@@ -38,6 +38,7 @@ r24: {
     - Fixed Ticket responsible selections not considering the AUTHENTICATED authorization control (ticket-91)
     - Fixed invalid generated SSH url for port 22 (issue-444, ticket-98)
     - Fix cloning repositories with `+` in their names. (revert pr-136, issue-362, ticket-100)
+    - Fixed NPE in GitblitClient (ticket-102)
     changes:
     - Split the pages servlet into a raw servlet and a pages servlet. All raw links now use the raw servlet (issue-413, ticket-49)
     - Drop deprecated --set-upstream syntax for -u (ticket-59)
index 66625a8eaff6eb60927715475344686c17fe2c93..f5bba1add3674644f79db7104d6174503302669b 100644 (file)
@@ -253,9 +253,11 @@ public class GitblitClient implements Serializable {
 \r
                // create list of available scripts by excluding inherited scripts\r
                List<String> scripts = new ArrayList<String>();\r
-               for (String script : settings.pushScripts) {\r
-                       if (!inherited.contains(script)) {\r
-                               scripts.add(script);\r
+               if (!ArrayUtils.isEmpty(settings.pushScripts)) {\r
+                       for (String script : settings.pushScripts) {\r
+                               if (!inherited.contains(script)) {\r
+                                       scripts.add(script);\r
+                               }\r
                        }\r
                }\r
                return scripts;\r