Browse files

Fixing NRE

  • Loading branch information...
1 parent 9b26890 commit 394ca895c5b21f1d335e3cd7cdb836474581ab4c @ayende ayende committed Aug 4, 2011
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.