diff --git a/system/jlib/jfile.cpp b/system/jlib/jfile.cpp index ed913cd2ebf..9235d5470ba 100644 --- a/system/jlib/jfile.cpp +++ b/system/jlib/jfile.cpp @@ -7998,6 +7998,8 @@ const char *getPlaneAttributeString(PlaneAttributeType attr) unsigned __int64 getPlaneAttributeValue(const char *planeName, PlaneAttributeType planeAttrType, unsigned __int64 defaultValue) { + if (!planeName) + return defaultValue; assertex(planeAttrType < PlaneAttributeCount); CriticalBlock b(planeAttributeMapCrit); auto it = planeAttributesMap.find(planeName);