Unity: NullReferenceException: Object reference not set to an instance of an object

Prerequisites

  • Be sure to run with tracing enabled to capture runtime details in the log file
  • Include the log file in the PR.
    • On Windows, the extension log file is at %LOCALAPPDATA%\GitHubUnity\github-unity.log
    • On macOS, the extension log file is at ~/Library/Application Support/GitHubUnity/github-unity.log

Description

Right after installing the extenstion, and opening the Github Window the console is spammed with errors and the window is blank. The settings window works tho.

Steps to Reproduce

  1. [First Step] Install Github for Unity
  2. [Second Step] Open the Github Window
  3. [and so on…] Look at console

Expected behavior: [What you expect to happen] For the window to show up with no errors Actual behavior: [What actually happens] The window is blank and there are errors Reproduces how often: [What percentage of the time does it reproduce?] 100% of the time

Additional Information

I have Unity 2017.2.0b5 (64-bit) and the latest Github for Unity release. Any additional information, configuration or data that might be necessary to reproduce the issue. github-unity.log

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 15 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Any idea when this will be fixed in release? Thanks!

If anyone needs this right now, I just built and tested what @shiena said, and it works.

We are still in Alpha ourselves. So we are mostly focusing on core functionality. Right now it’s caching and #23

2017.2 was just made official earlier this month and we haven’t gotten the chance to get to it yet… although…

  1. Some kind folks have described the problem above
  2. We take pull requests 😃

“You must construct additional pylons” -Starcraft

img

We appreciate the love guys.

img\

We are just busy chasing other stability issues at the moment. Hopefully in a few weeks we can get to this.

shakes fist at Unity

Ok so the problem is that ImageConversion got moved out to a separate DLL, which means using Texture2D as a DLL location base no longer works. Worse, it got moved to its own assembly - literally a DLL which only contains this class, which means there is no type we can use to get at its location. So, sigh, we’ll need to add yet another codepath to the StreamExtensions code to reference the UnityEngine.ImageConversionModule.dll dll and get the ImageConversion type.