Index: fpdfsdk/javascript/global.cpp |
diff --git a/fpdfsdk/javascript/global.cpp b/fpdfsdk/javascript/global.cpp |
index d843b60105fe8e8e03e14a3f587575e6a5b0e465..7242a144c98c2b54463fb5e834e8be61de57a664 100644 |
--- a/fpdfsdk/javascript/global.cpp |
+++ b/fpdfsdk/javascript/global.cpp |
@@ -414,7 +414,7 @@ FX_BOOL JSGlobalAlternate::SetGlobalVariables(const CFX_ByteString& propname, |
const CFX_ByteString& sData, |
v8::Local<v8::Object> pData, |
bool bDefaultPersistent) { |
- if (!propname) |
+ if (propname.IsEmpty()) |
return FALSE; |
auto it = m_mapGlobal.find(propname); |