We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1de0af7 commit da4529aCopy full SHA for da4529a
Projects/Package/Sources/Xinq/XinqEditorPane.cs
@@ -142,14 +142,14 @@ public int GetGuidEditorType(out Guid pClassID)
142
143
public int IsDocDataDirty(out int pfDirty)
144
{
145
- pfDirty = _document.IsDirty ? 1 : 0;
+ pfDirty = _document?.IsDirty == true ? 1 : 0;
146
147
return VSConstants.S_OK;
148
}
149
150
public int IsDocDataReadOnly(out int pfReadOnly)
151
152
- pfReadOnly = _document.IsReadOnly ? 1 : 0;
+ pfReadOnly = _document?.IsReadOnly == true ? 1 : 0;
153
154
155
0 commit comments