Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException on MonoCecilHelper.IsOrInheritedFrom method #142

Closed
IJEMIN opened this issue Nov 2, 2022 · 3 comments
Closed

NullReferenceException on MonoCecilHelper.IsOrInheritedFrom method #142

IJEMIN opened this issue Nov 2, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@IJEMIN
Copy link

IJEMIN commented Nov 2, 2022

Describe the bug

NullReferenceException invoked when try to analyze code issues.

To Reproduce
Steps to reproduce the behavior:

  1. Open Project Auditor Window
  2. Select Code Module in Modules field from window.
  3. Press Analyze
  4. Code analyze failed. There is no entry in Code view.
    And error in console view

Object reference not set to an instance of an object Unity.ProjectAuditor.Editor.CodeAnalysis.MonoCecilHelper.IsOrInheritedFrom (Mono.Cecil.TypeReference typeReference, System.String typeName)

Expected behavior
Code compilation finished without error and user can see code analysis on Code view.

Information (please complete the following information):

  • OS: MacOS Ventura
  • Unity 2021.3.9
  • Project Auditor version 0.8.4 preview
@IJEMIN
Copy link
Author

IJEMIN commented Nov 2, 2022

Update: it only happens in latest main branch. Didn't happen in release/0.8.4-preview branch

@mtrive
Copy link
Contributor

mtrive commented Nov 3, 2022

@IJEMIN thanks for reporting. I was able to reproduce the exception and we will have a fix shortly.

@mtrive mtrive added the bug Something isn't working label Nov 3, 2022
@mtrive mtrive self-assigned this Nov 3, 2022
@mtrive
Copy link
Contributor

mtrive commented Nov 3, 2022

This should be fixed now. Thanks again for the bug report.

@mtrive mtrive closed this as completed Nov 3, 2022
mtrive pushed a commit that referenced this issue Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants