File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -187,11 +187,19 @@ 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
+ continue ; // Skip if AssemblyName is not set, which can happen for errornous plugins
193
+ }
190
194
metadata . PluginSettingsDirectoryPath = Path . Combine ( DataLocation . PluginSettingsDirectory , metadata . AssemblyName ) ;
191
195
metadata . PluginCacheDirectoryPath = Path . Combine ( DataLocation . PluginCacheDirectory , metadata . AssemblyName ) ;
192
196
}
193
197
else
194
198
{
199
+ if ( string . IsNullOrEmpty ( metadata . Name ) )
200
+ {
201
+ continue ; // Skip if Name is not set, which can happen for errornous plugins
202
+ }
195
203
metadata . PluginSettingsDirectoryPath = Path . Combine ( DataLocation . PluginSettingsDirectory , metadata . Name ) ;
196
204
metadata . PluginCacheDirectoryPath = Path . Combine ( DataLocation . PluginCacheDirectory , metadata . Name ) ;
197
205
}
You can’t perform that action at this time.
0 commit comments