Fix spurious NPE

This commit is contained in:
bd_ 2022-10-04 17:54:03 -07:00 committed by bd_
parent 3db78a769c
commit a585d31931

View File

@ -20,7 +20,7 @@ namespace net.fushizen.modular_avatar.core
_cacheValid = true;
_cachedPath = referencePath;
if (referencePath == "")
if (string.IsNullOrEmpty(referencePath))
{
_cachedReference = null;
return _cachedReference;