1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

possible null pointer fix

This commit is contained in:
Kyle Spearrin
2018-06-30 08:19:18 -04:00
parent f680b1e856
commit bf99cea004

View File

@@ -172,7 +172,11 @@ namespace Bit.App.Models.Page
{
AddRange(groupItems);
if(doUpper)
if(string.IsNullOrWhiteSpace(Name))
{
Name = "-";
}
else if(doUpper)
{
Name = name.ToUpperInvariant();
}