Bug 136966

Summary: build.webkit.org/dashboard: Pending builds don't show up when there is a commit with no comments
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: Tools / TestsAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, thorton, timothy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed fix none

Description Alexey Proskuryakov 2014-09-19 16:55:08 PDT
There is an exception raised when description is empty.
Comment 1 Alexey Proskuryakov 2014-09-19 16:59:24 PDT
Created attachment 238399 [details]
proposed fix
Comment 2 Daniel Bates 2014-09-19 17:56:27 PDT
Comment on attachment 238399 [details]
proposed fix

View in context: https://bugs.webkit.org/attachment.cgi?id=238399&action=review

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:105
> -        if (parsedDescription.firstChild.className === "changes") {
> +        if (parsedDescription.firstChild && parsedDescription.firstChild.className === "changes") {

We may want to consider caching parsedDescription.firstChild in a local variable to avoid computing it again since we reference it four times in this function.
Comment 3 WebKit Commit Bot 2014-09-19 19:44:34 PDT
Comment on attachment 238399 [details]
proposed fix

Clearing flags on attachment: 238399

Committed r173786: <http://trac.webkit.org/changeset/173786>
Comment 4 WebKit Commit Bot 2014-09-19 19:44:37 PDT
All reviewed patches have been landed.  Closing bug.