Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 076db75

Browse files
committed
Merge pull request #403 from linquize/issue-402
Fixes issue #402: NullReferenceException when creating new WPF application project
2 parents 699cc33 + a4bbc51 commit 076db75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AddIns/BackendBindings/CSharpBinding/Project/Src/Project/CSharpProject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public override void ProjectLoaded()
142142
public override void Save(string fileName)
143143
{
144144
// Save project extensions
145-
if (extensionProperties.IsDirty) {
145+
if (extensionProperties != null && extensionProperties.IsDirty) {
146146
var propertiesXElement = extensionProperties.Save();
147147
SaveProjectExtensions(ExtensionPropertiesName, propertiesXElement);
148148
extensionProperties.IsDirty = false;

0 commit comments

Comments
 (0)