Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 2b58acc

Browse files
authored
Merge pull request #315 from github/fixes/create-branch-NRE
Fix NullReferenceException during branch create
2 parents bf36e06 + 5812483 commit 2b58acc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/BranchesView.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ private void OnCreateGUI()
464464
var cancelCreate = false;
465465
var cannotCreate = selectedNode == null ||
466466
selectedNode.Type == NodeType.Folder ||
467+
newBranchName == null ||
467468
!Utility.BranchNameRegex.IsMatch(newBranchName);
468469

469470
// Create on return/enter or cancel on escape

0 commit comments

Comments
 (0)