File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -187,11 +187,21 @@ private static void UpdatePluginDirectory(List<PluginMetadata> metadatas)
187
187
{
188
188
if ( AllowedLanguage . IsDotNet ( metadata . Language ) )
189
189
{
190
+ if ( string . IsNullOrEmpty ( metadata . AssemblyName ) )
191
+ {
192
+ API . LogWarn ( ClassName , $ "AssemblyName is empty for plugin with metadata: { metadata . Name } ") ;
193
+ continue ; // Skip if AssemblyName is not set, which can happen for erroneous plugins
194
+ }
190
195
metadata . PluginSettingsDirectoryPath = Path . Combine ( DataLocation . PluginSettingsDirectory , metadata . AssemblyName ) ;
191
196
metadata . PluginCacheDirectoryPath = Path . Combine ( DataLocation . PluginCacheDirectory , metadata . AssemblyName ) ;
192
197
}
193
198
else
194
199
{
200
+ if ( string . IsNullOrEmpty ( metadata . Name ) )
201
+ {
202
+ API . LogWarn ( ClassName , $ "Name is empty for plugin with metadata: { metadata . Name } ") ;
203
+ continue ; // Skip if Name is not set, which can happen for erroneous plugins
204
+ }
195
205
metadata . PluginSettingsDirectoryPath = Path . Combine ( DataLocation . PluginSettingsDirectory , metadata . Name ) ;
196
206
metadata . PluginCacheDirectoryPath = Path . Combine ( DataLocation . PluginCacheDirectory , metadata . Name ) ;
197
207
}
You can’t perform that action at this time.
0 commit comments