mmbot/mmbot.scripts — pull request #21 by alexmg (2014-06-19 09:03:31+00:00)
Title: Fixed NullReferenceException thrown executing "show me builds" command

Fixed NullReferenceException thrown executing "show me builds" when no builds are currently running in TeamCity. In this case the only member in the JSON result is "href" so the "count" member cannot be accessed. I have left the existing "count" check in place as well, just in case earlier versions of the TeamCity API did return this member when no builds are running. I am currently running TeamCity Enterprise 8.1.1 in case it is of interest.