Changeset 7632


Ignore:
Timestamp:
03/25/19 11:29:33 (4 weeks ago)
Author:
rohit_tandon
Message:

minor. null check. Observed while working on add comment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Obi/Obi/ProjectView/ContentView.cs

    r7630 r7632  
    52735273                { 
    52745274                //return IsBlockSelected && SelectedEmptyNode.AncestorAs<SectionNode> ().Used; 
    5275                     return IsBlockOrWaveformSelected &&   mProjectView.Selection.Node is EmptyNode  && mProjectView.Selection.Node.AncestorAs<SectionNode>().Used; 
     5275                    return IsBlockOrWaveformSelected && mProjectView != null && mProjectView.Selection !=null && 
     5276                        mProjectView.Selection.Node is EmptyNode  && mProjectView.Selection.Node.AncestorAs<SectionNode>().Used; 
    52765277                } 
    52775278            } 
Note: See TracChangeset for help on using the changeset viewer.