Skip to content

Commit

Permalink
skipp null category elements in OnElementEnd as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Tammik committed Nov 25, 2014
1 parent f20794f commit 9363c77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RvtVa3c/Va3cExportContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,12 @@ public void OnElementEnd(
return;
}

if( null == e.Category )
{
Debug.WriteLine( "\r\n*** Non-category element!\r\n" );
return;
}

List<string> materials = _vertices.Keys.ToList();

int n = materials.Count;
Expand Down

0 comments on commit 9363c77

Please sign in to comment.