Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing NRE

  • Loading branch information...
commit 394ca895c5b21f1d335e3cd7cdb836474581ab4c 1 parent 9b26890
@ayende ayende authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Raven.Studio/Features/Documents/EditDocumentViewModel.cs
View
2  Raven.Studio/Features/Documents/EditDocumentViewModel.cs
@@ -199,7 +199,7 @@ public void UpdateDocumentFromJsonDocument()
Id = document.Key;
JsonData = PrepareRawJsonString(document.DataAsJson);
- IsProjection = string.IsNullOrEmpty(Id) && (document.Metadata.Any() == false);
+ IsProjection = string.IsNullOrEmpty(Id) && (document.Metadata == null || document.Metadata.Any() == false);
if (IsProjection) return;
if (document.Metadata != null)

0 comments on commit 394ca89

Please sign in to comment.
Something went wrong with that request. Please try again.