pre-receive failed: java.lang.NullPointerException for a newly created empty repository

Issue #92 resolved
Eric Ma created an issue

After creating a new repository in Bitbucket server, for the first push:

Counting objects: 3, done.
Writing objects: 100% (3/3), 231 bytes | 231.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Control Freak: at com.bitbooster.hook.BranchModelUtil.<init>(BranchModelUtil.java:51)
remote: Control Freak - pre-receive failed: java.lang.NullPointerException
remote:   at com.bitbooster.hook.BranchModelUtil.<init>(BranchModelUtil.java:51)
remote:   at com.bitbooster.hook.MyMergeCheckHook.processReceive(MyMergeCheckHook.java:278)
remote:   at com.bitbooster.hook.ControlFreakPreReceive.preUpdate(ControlFreakPreReceive.java:115)
remote: 
To ssh://git..../....git
 ! [remote rejected] master -> master (pre-receive hook declined)

However, if the repository is not empty (there are commits), it works well.

Comments (2)

  1. Julius Davies [bit-booster.com] repo owner

    Thanks for the bug report. Confirmed and reproduced. We plan to publish a fix for this within the next week.

  2. Log in to comment