Skip to content

Commit 1af6d7b

Browse files
committed
TreeNodeAdv NRE fix
1 parent 2f014ff commit 1af6d7b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Aga.Controls/Tree/TreeNodeAdv.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public TreeNodeAdv PreviousNode
221221
{
222222
get
223223
{
224-
if (_parent != null)
224+
if (_parent?.Nodes != null)
225225
{
226226
int index = Index;
227227
if (index > 0)
@@ -235,7 +235,7 @@ public TreeNodeAdv NextNode
235235
{
236236
get
237237
{
238-
if (_parent != null)
238+
if (_parent?.Nodes != null)
239239
{
240240
int index = Index;
241241
if (index < _parent.Nodes.Count - 1)

0 commit comments

Comments
 (0)