mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
null check
This commit is contained in:
@@ -21,8 +21,13 @@ namespace Bit.App.Utilities
|
||||
Special
|
||||
}
|
||||
|
||||
public static FormattedString FormatPassword(String password)
|
||||
public static FormattedString FormatPassword(string password)
|
||||
{
|
||||
if(password == null)
|
||||
{
|
||||
return new FormattedString();
|
||||
}
|
||||
|
||||
var result = new FormattedString();
|
||||
// Start off with an empty span to prevent possible NPEs. Due to the way the state machine
|
||||
// works, this will actually always be replaced by a new span anyway.
|
||||
|
||||
Reference in New Issue
Block a user