Fix build server errors

This commit is contained in:
John Lewin 2017-11-17 17:46:58 -08:00
parent 6b628d8c27
commit b6cf16afeb
3 changed files with 7 additions and 5 deletions

View file

@ -409,7 +409,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
return listView.SelectedItems.Count == 1
&& selectedListItems.FirstOrDefault()?.Model is ILibraryItem firstItem
&& !(firstItem is ILibraryContainer)
&& ApplicationController.Instance.DragDropData?.Printer.Connection.CommunicationState == CommunicationStates.Connected;
&& ApplicationController.Instance.DragDropData?.Printer?.Connection.CommunicationState == CommunicationStates.Connected;
}
});