File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -207,11 +207,13 @@ Local<Value> LlClass::getAllPluginInfo(const Arguments& args) {
207
207
pluginObject.set (" versionStr" , plugin.getManifest ().version ->to_string ());
208
208
pluginObject.set (" filePath" , plugin.getManifest ().entry );
209
209
210
- auto others = Object::newObject ();
211
- for (const auto & [k, v] : *plugin.getManifest ().extraInfo ) {
212
- others.set (k, v);
210
+ if (plugin.getManifest ().extraInfo .has_value ()) {
211
+ auto others = Object::newObject ();
212
+ for (const auto & [k, v] : plugin.getManifest ().extraInfo .value ()) {
213
+ others.set (k, v);
214
+ }
215
+ pluginObject.set (" others" , others);
213
216
}
214
- pluginObject.set (" others" , others);
215
217
216
218
// Add plugin object to list
217
219
plugins.add (pluginObject);
You can’t perform that action at this time.
0 commit comments