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 adding assemblies #32

Open
philipmat opened this issue Dec 31, 2017 · 0 comments
Open

NullReferenceException on adding assemblies #32

philipmat opened this issue Dec 31, 2017 · 0 comments

Comments

@philipmat
Copy link

Getting a NRE in PropertyPresenter.AddAssemblyCommand_Execute:180 because _selectedConfig is null).

Exception:

System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=<Cannot evaluate the exception source>
  StackTrace:
<Cannot evaluate the exception stack trace>

How to reproduce (current master / v1.0.0.0):

  1. Start the application, click New
  2. Don't change any options, go to Assemblies tab
  3. Add an assembly.
  4. Error manifests.

I only see _selectedConfig getting set in LoadViewFromModel and even there only if _model.ConfigName.Length > 0, otherwise it's getting set to null. However, on a new project, PropertyModel.Configs contains no config so _selectedConfig never gets set to anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant