diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-01-14 17:08:29 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-01-14 17:08:29 +0200 |
| commit | 24e9858fe411e23a9edfce118c4513465457618f (patch) | |
| tree | 263dae1eb8ac6dab01e7af70577e2e2e0407dd4f /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner | |
| parent | e852921ea5399f228c804e999847277005f76e62 (diff) | |
| download | Tango-24e9858fe411e23a9edfce118c4513465457618f.tar.gz Tango-24e9858fe411e23a9edfce118c4513465457618f.zip | |
Fixed some issue with creating new machine.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs index 71b2e0bd5..22bf03148 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs @@ -585,7 +585,7 @@ namespace Tango.MachineStudio.MachineDesigner.ViewModels vm.MachineVersions = MachinesAdapter.MachineVersions.ToList(); _notification.ShowModalDialog<MachineCreationDialogVM, Views.MachineCreationDialog>(vm, (x) => { - if (String.IsNullOrWhiteSpace(vm.SelectedMachineVersion.PrototypeMachineData)) + if (vm.SelectedMachineVersion != null && String.IsNullOrWhiteSpace(vm.SelectedMachineVersion.PrototypeMachineData)) { _notification.ShowError("The selected version does not contain any prototype machine data."); return; |
