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

Commit 9f084e1

Browse files
Preventing a NullReferenceException that can occur when creating a branch
1 parent a445e84 commit 9f084e1

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)