1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-11 05:43:30 +00:00

crash fixes

This commit is contained in:
Kyle Spearrin
2018-03-20 20:19:44 -04:00
parent c6a40bac03
commit f33248aa4f
2 changed files with 10 additions and 9 deletions

View File

@@ -676,8 +676,9 @@ namespace Bit.App.Models.Page
}
}
public string Label => IsWebsite ? AppResources.Website : AppResources.URI;
public bool IsWebsite => Value.StartsWith("http://") || Value.StartsWith("https://");
public bool IsApp => Value.StartsWith(Constants.AndroidAppProtocol);
public bool IsWebsite => Value == null ? false :
Value.StartsWith("http://") || Value.StartsWith("https://");
public bool IsApp => Value == null ? false : Value.StartsWith(Constants.AndroidAppProtocol);
}
}
}