Skip to content

Commit

Permalink
fix(revit): type mapping null reference (#2926)
Browse files Browse the repository at this point in the history
  • Loading branch information
teocomi authored Sep 18, 2023
1 parent df09e01 commit a97066d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ await Dispatcher.UIThread.InvokeAsync<ITypeMap>(() =>
{
try
{
familyImporter ??= new FamilyImporter(document, revitCategoriesExposer, typeRetriever);
familyImporter ??= new FamilyImporter(document, revitCategoriesExposer, typeRetriever, revitDocumentAggregateCache);
await familyImporter.ImportFamilyTypes(hostTypesContainer).ConfigureAwait(false);
}
catch (SpeckleException ex)
Expand Down
3 changes: 2 additions & 1 deletion ConnectorRevit/ConnectorRevit/TypeMapping/FamilyImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ internal sealed class FamilyImporter
private readonly IRevitElementTypeRetriever typeRetriever;
private readonly IRevitDocumentAggregateCache revitDocumentAggregateCache;

public FamilyImporter(Document document, IAllRevitCategoriesExposer revitCategoriesExposer, IRevitElementTypeRetriever typeRetriever)
public FamilyImporter(Document document, IAllRevitCategoriesExposer revitCategoriesExposer, IRevitElementTypeRetriever typeRetriever, IRevitDocumentAggregateCache revitDocumentAggregateCache)
{
this.document = document;
this.revitCategoriesExposer = revitCategoriesExposer;
this.typeRetriever = typeRetriever;
this.revitDocumentAggregateCache = revitDocumentAggregateCache;
}

/// <summary>
Expand Down

0 comments on commit a97066d

Please sign in to comment.