| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a534d82 commit c84d802
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -227,7 +227,7 @@ void MapKVStore::Set(Isolate* isolate, Local<String> key, Local<String> value) { | |||
| 227 | 227 | Mutex::ScopedLock lock(mutex_); | |
| 228 | 228 | Utf8Value key_str(isolate, key); | |
| 229 | 229 | Utf8Value value_str(isolate, value); | |
| 230 | - if (*key_str != nullptr && *value_str != nullptr) { | ||
| 230 | + if (*key_str != nullptr && key_str.length() > 0 && *value_str != nullptr) { | ||
| 231 | 231 | map_[std::string(*key_str, key_str.length())] = | |
| 232 | 232 | std::string(*value_str, value_str.length()); | |
| 233 | 233 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments