(DirectoryPosition): check current item for null.

This commit is contained in:
morkt 2014-07-30 12:14:02 +04:00
parent 7d93f14e6f
commit 209d98aea6

View File

@ -321,7 +321,7 @@ namespace GARbro.GUI
public DirectoryPosition (DirectoryViewModel vm, EntryViewModel item) public DirectoryPosition (DirectoryViewModel vm, EntryViewModel item)
{ {
Path = vm.Path; Path = vm.Path;
Item = item.Name; Item = null != item ? item.Name : null;
if (vm.IsArchive) if (vm.IsArchive)
ArchivePath = (vm as ArchiveViewModel).SubDir; ArchivePath = (vm as ArchiveViewModel).SubDir;
else else