]> Lady’s Gitweb - Gitweb/commit
gitweb.js: fix null object exception in initials calculation
authorStephen Boyd <redacted>
Thu, 19 Nov 2009 19:44:46 +0000 (11:44 -0800)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
commit367f1aa76008d203d3ef9f2ec5580a750d45c854823d513a9e45bcd5b6caa8f9
tree5df900fd93083f9d397e6c3e46191280cf17afde5ba362b15b7ac1afd3eb91c4
parent429ff9b6360dd0fed94740858ce90d024777b211e31b830915e51aafcf1e23ca
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 <redacted>
Acked-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.js
This page took 0.21854 seconds and 4 git commands to generate.