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)
187187 {
188188 if ( AllowedLanguage . IsDotNet ( metadata . Language ) )
189189 {
190+ if ( string . IsNullOrEmpty ( metadata . AssemblyName ) )
191+ {
192+ continue ; // Skip if AssemblyName is not set, which can happen for errornous plugins
193+ }
190194 metadata . PluginSettingsDirectoryPath = Path . Combine ( DataLocation . PluginSettingsDirectory , metadata . AssemblyName ) ;
191195 metadata . PluginCacheDirectoryPath = Path . Combine ( DataLocation . PluginCacheDirectory , metadata . AssemblyName ) ;
192196 }
193197 else
194198 {
199+ if ( string . IsNullOrEmpty ( metadata . Name ) )
200+ {
201+ continue ; // Skip if Name is not set, which can happen for errornous plugins
202+ }
195203 metadata . PluginSettingsDirectoryPath = Path . Combine ( DataLocation . PluginSettingsDirectory , metadata . Name ) ;
196204 metadata . PluginCacheDirectoryPath = Path . Combine ( DataLocation . PluginCacheDirectory , metadata . Name ) ;
197205 }
You can’t perform that action at this time.
0 commit comments