File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ private void CollectAllTypes()
9797
9898 foreach ( var type in types )
9999 {
100- if ( type == null )
100+ if ( type == null || type . Namespace is null )
101101 {
102102 continue ;
103103 }
@@ -212,11 +212,11 @@ private void UpdateUniqueNames(Type type)
212212 var searchExistingType = UniqueNames . FirstOrDefault ( t => t . Key . Name == type . Name ) ;
213213 if ( searchExistingType . Key != null )
214214 {
215- var namesp = searchExistingType . Key . Namespace ! ;
215+ var namesp = searchExistingType . Key . Namespace ?? string . Empty ;
216216 namesp = namesp . Replace ( "." , "_" ) ;
217217 UniqueNames [ searchExistingType . Key ] = $ "{ namesp } _{ searchExistingType . Key . Name } ";
218218
219- namesp = type . Namespace ! ;
219+ namesp = type . Namespace ?? string . Empty ;
220220 namesp = namesp . Replace ( "." , "_" ) ;
221221 UniqueNames . Add ( type , $ "{ namesp } _{ type . Name } ") ;
222222 }
You can’t perform that action at this time.
0 commit comments