mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-04 13:45:04 +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;
|
_cacheValid = true;
|
||||||
_cachedPath = referencePath;
|
_cachedPath = referencePath;
|
||||||
|
|
||||||
if (referencePath == "")
|
if (string.IsNullOrEmpty(referencePath))
|
||||||
{
|
{
|
||||||
_cachedReference = null;
|
_cachedReference = null;
|
||||||
return _cachedReference;
|
return _cachedReference;
|
||||||
|
Loading…
Reference in New Issue
Block a user