We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf80228 commit 31e17beCopy full SHA for 31e17be
src/legacy/api/LlAPI.cpp
@@ -157,12 +157,14 @@ Local<Value> LlClass::getPluginInfo(const Arguments& args) {
157
result.set("version", ver);
158
result.set("versionStr", plugin->getManifest().version->to_string());
159
result.set("filePath", plugin->getManifest().entry);
160
-
161
- auto others = Object::newObject();
162
- for (const auto& [k, v] : *plugin->getManifest().extraInfo) {
163
- others.set(k, v);
+ if (plugin->getManifest().extraInfo.has_value()) {
+ auto others = Object::newObject();
+ for (const auto& [k, v] : plugin->getManifest().extraInfo.value()) {
+ others.set(k, v);
164
+ }
165
+ result.set("others", others);
166
}
- result.set("others", others);
167
+
168
return result;
169
170
return {};
0 commit comments