Skip to content

type.BaseType can be null  #1

@jakub-pravda

Description

@jakub-pravda

In the ClassToMarkdown method you have this part of code:

if (type.BaseType != typeof(object)) output.AppendLine("*Extends " + type.BaseType.FullName + "*");

When BaseType is null (for example if an object is a type of interface or object class) then unhandled System.NullReferenceException occurs. AND condition with "type.Basetype !=null" missing in above-mentioned if statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions