mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
Fix spurious NPE
This commit is contained in:
parent
3db78a769c
commit
a585d31931
@ -20,7 +20,7 @@ namespace net.fushizen.modular_avatar.core
|
||||
_cacheValid = true;
|
||||
_cachedPath = referencePath;
|
||||
|
||||
if (referencePath == "")
|
||||
if (string.IsNullOrEmpty(referencePath))
|
||||
{
|
||||
_cachedReference = null;
|
||||
return _cachedReference;
|
||||
|
Loading…
Reference in New Issue
Block a user