diff --git a/Material.Icons/MaterialIconDataProvider.Declaration.cs b/Material.Icons/MaterialIconDataProvider.Declaration.cs
index a83131c..438b1ea 100644
--- a/Material.Icons/MaterialIconDataProvider.Declaration.cs
+++ b/Material.Icons/MaterialIconDataProvider.Declaration.cs
@@ -9,7 +9,7 @@ namespace Material.Icons;
/// Allows retrieving data for icons
///
public partial class MaterialIconDataProvider {
- private static MaterialIconDataProvider? _instance;
+ private static MaterialIconDataProvider _instance = new();
///
/// Gets or sets the singleton instance of this provider
diff --git a/build/Generators/MaterialIconDataDeclarationGenerator.cs b/build/Generators/MaterialIconDataDeclarationGenerator.cs
index 74b57c7..4833bb1 100644
--- a/build/Generators/MaterialIconDataDeclarationGenerator.cs
+++ b/build/Generators/MaterialIconDataDeclarationGenerator.cs
@@ -22,7 +22,7 @@ public static void Write(AbsolutePath destinationPath) {
stringBuilder.AppendLine("/// Allows retrieving data for icons");
stringBuilder.AppendLine("/// ");
stringBuilder.AppendLine("public partial class MaterialIconDataProvider {");
- stringBuilder.AppendLine(" private static MaterialIconDataProvider? _instance;");
+ stringBuilder.AppendLine(" private static MaterialIconDataProvider _instance = new();");
stringBuilder.AppendLine("");
stringBuilder.AppendLine(" /// ");
stringBuilder.AppendLine(" /// Gets or sets the singleton instance of this provider");