Pre-recieve hook code is causing NPE while branch creation/deletion.

Description

If the Pre-receive code is enabled, creating/deleting a branch is giving the NPE.
Unable to reproduce the issue in the lower version of bitbucket with the same code.

Environment

None

Assignee

Ajay Singh [Wittified Atlassian apps]

Reporter

Jagadeswara Mettupalli

Labels

Atlassian Software Version

6.10

cc

None

Affects versions

Priority

Major
Configure