Skip to content

Commit

Permalink
masesgroup#102: return an empty string if Namespace of Type is null (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored Mar 15, 2022
1 parent a98ba83 commit bd99be5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/engine/Reflector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,8 @@ static void writeFile(string fileName, string content)

static string ToPackageName(this Type type)
{
if (string.IsNullOrEmpty(type.Namespace)) return string.Empty;

var basepackage = type.Namespace.ToLowerInvariant();

foreach (var item in Const.KeyWords)
Expand Down

0 comments on commit bd99be5

Please sign in to comment.