aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/Storage
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-27 12:27:07 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-27 12:27:07 +0300
commit6e13195f8b041d07308f74f199fb3e1d1cb346cf (patch)
treec04b6e70b24ef0ab8aef6ece4a69ef4158943cf5 /Software/Visual_Studio/Tango.Integration/Storage
parentc2053da2800be48d49d473b3da80954afbcc0a15 (diff)
downloadTango-6e13195f8b041d07308f74f199fb3e1d1cb346cf.tar.gz
Tango-6e13195f8b041d07308f74f199fb3e1d1cb346cf.zip
Fixed issue with firmware upgrade on Machine Studio.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Storage')
-rw-r--r--Software/Visual_Studio/Tango.Integration/Storage/StorageItem.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Storage/StorageItem.cs b/Software/Visual_Studio/Tango.Integration/Storage/StorageItem.cs
index eb7e56adb..6894f7111 100644
--- a/Software/Visual_Studio/Tango.Integration/Storage/StorageItem.cs
+++ b/Software/Visual_Studio/Tango.Integration/Storage/StorageItem.cs
@@ -22,11 +22,12 @@ namespace Tango.Integration.Storage
{
get { return System.IO.Path.GetFileName(Path); }
}
+
public String Parent
{
get
{
- if (Path == "/") return null;
+ if (Path == "/" || Path == null) return null;
String root = System.IO.Path.GetPathRoot(Path);
var parent = Directory.GetParent(Path);