tcplugins / tcWebHooks

WebHooks plugin for Teamcity. Supports many build states and payload formats.
https://netwolfuk.wordpress.com/category/teamcity/tcplugins/tcwebhooks/
157 stars 30 forks source link

Fix null ref exception #205

Closed matt-richardson closed 2 years ago

matt-richardson commented 2 years ago

When using a project based webhook sensitive parameter for a bearer auth token, it throws an error.

999 :: Unexpected exception. Please log a bug on GitHub tcplugins/tcWebHooks. Exception was: null

Debugging it leads me to this line, where it uses previous when it could be null. It should be using newHookParameterModel instead.

Fixes #204.