mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(DirectoryPosition): check current item for null.
This commit is contained in:
parent
7d93f14e6f
commit
209d98aea6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user