tcWebHooks icon indicating copy to clipboard operation
tcWebHooks copied to clipboard

Exception in legacy webhook

Open ogerovich opened this issue 10 months ago • 2 comments

TeamCity Server: 2024.07.3 (build 160765) tcWebHooks : 2.0.1

Found this on administrator pages for WebHooks: 999 :: Unexpected exception. Please log a bug on GitHub tcplugins/tcWebHooks. Exception was: Cannot invoke "String.trim()" because the return value of "webhook.teamcity.payload.content.WebHookPayloadContent.getComment()" is null

Build event: Build Responsibility Changed Template Id: legacy-json Payload Format: json Template Status: Template bundled with tcWebhooks

ogerovich avatar Feb 06 '25 14:02 ogerovich

Thanks for raising this. I will fix in the next release.

Looking at the code, it only happens on Build Responsibility Changed and when no comment is left.

netwolfuk avatar Feb 06 '25 17:02 netwolfuk

v2.0.3-rc.1 released

netwolfuk avatar May 18 '25 23:05 netwolfuk