commit | e42a05f75c9ff5d10d0b8f6784fc244873818a99 | [log] [tgz] |
---|---|---|
author | Stephen Boyd <bebarino@gmail.com> | Thu Nov 19 11:44:46 2009 -0800 |
committer | Junio C Hamano <gitster@pobox.com> | Thu Nov 19 23:02:30 2009 -0800 |
tree | 7d3dca9a525b76d5dae38dc4b7ac93261f6b5818 | |
parent | 63267de2acc18027fc0208c0937fd62b91301fec [diff] |
gitweb.js: fix null object exception in initials calculation Currently handleLine() assumes that a commit author name will always start with a capital letter. It's possible that the author name is user@example.com and therefore calling a match() on the name will fail to return any matches. Subsequently joining these matches will cause an exception. Fix by checking that we have a match before trying to join the results into a set of initials for the author. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Acked-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>