diff --git a/Windream/Windream.vb b/Windream/Windream.vb index f7a68c41..a5ff4475 100644 --- a/Windream/Windream.vb +++ b/Windream/Windream.vb @@ -302,7 +302,8 @@ Public Class Windream ' TODO: WMEntityAttribute is not defined. Please define WMEntityAttribute or replace it with the correct constant or enum value representing an attribute entity in your Windream API. Throw New NotImplementedException("WMEntityAttribute is not defined. Please define WMEntityAttribute or provide the correct value for attribute entity.") 'Dim oType = oAttribute.GetVariableValue("dwAttrType") ' oAttribute is not declared, so this line is commented out to fix BC30451 - Return oType + ' oType is not declared, so we cannot return it. Return a default value or handle appropriately. + Return Nothing Catch ex As Exception _logger.Warn($"Error in Windream.GetIndexType for Indexname [{IndexName}]") _logger.Error(ex)