mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
null check
This commit is contained in:
parent
060e1a822f
commit
d199c83a61
1 changed files with 6 additions and 1 deletions
|
@ -21,8 +21,13 @@ namespace Bit.App.Utilities
|
||||||
Special
|
Special
|
||||||
}
|
}
|
||||||
|
|
||||||
public static FormattedString FormatPassword(String password)
|
public static FormattedString FormatPassword(string password)
|
||||||
{
|
{
|
||||||
|
if(password == null)
|
||||||
|
{
|
||||||
|
return new FormattedString();
|
||||||
|
}
|
||||||
|
|
||||||
var result = new FormattedString();
|
var result = new FormattedString();
|
||||||
// Start off with an empty span to prevent possible NPEs. Due to the way the state machine
|
// 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.
|
// works, this will actually always be replaced by a new span anyway.
|
||||||
|
|
Loading…
Reference in a new issue