Skip to content

Commit

Permalink
TreeNodeAdv NRE fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiye committed Nov 20, 2024
1 parent 2f014ff commit 1af6d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Aga.Controls/Tree/TreeNodeAdv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public TreeNodeAdv PreviousNode
{
get
{
if (_parent != null)
if (_parent?.Nodes != null)
{
int index = Index;
if (index > 0)
Expand All @@ -235,7 +235,7 @@ public TreeNodeAdv NextNode
{
get
{
if (_parent != null)
if (_parent?.Nodes != null)
{
int index = Index;
if (index < _parent.Nodes.Count - 1)
Expand Down

0 comments on commit 1af6d7b

Please sign in to comment.