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

Exceptions thrown when running demos in Debug mode #1

Closed
mroavi opened this issue May 18, 2019 · 3 comments
Closed

Exceptions thrown when running demos in Debug mode #1

mroavi opened this issue May 18, 2019 · 3 comments

Comments

@mroavi
Copy link

mroavi commented May 18, 2019

An exception is thrown whenever I click any of the first three links in the browser window (see below). I am running Visual Studio 2017 express on Windows 10.
image
image

System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=MurderMystery
  StackTrace:
   at MurderMystery.VariablesViewModel.get_DaggerOpacity() in C:\Users\martin\repos\mbmlbook\src\1. A Murder Mystery\Views\VariablesViewModel.cs:line 335
   at Microsoft.Research.Glo.Object.Property_251.GetValue(Object )
   at Microsoft.Research.Glo.Object.PropertyPart..ctor(IExpressionPart parent, ClrProperty cprop, Object defaultObj)

@msdmkats
Copy link

Apparently, this was only a problem when the app was being debugged. Without debugger WPF simply swallowed all those exceptions (lot of them) and continued to function. Anyway, 6f23a0b should have fixed this.

@mroavi mroavi changed the title Exception thrown when running "A Murder Mystery" example Exceptions thrown when running demos in Debug mode May 20, 2019
@mroavi
Copy link
Author

mroavi commented May 20, 2019

Thanks for fixing this. I'm not familiar with C# and being able to step through the code helps a lot. Could you also fix a similar issue in the "Assessing People Skills"demo?
image
image

System.NullReferenceException: 'Object reference not set to an instance of an object.'

AssessingPeoplesSkills.Metrics.Inputs.get returned null.

@novikov-alexander-zz
Copy link

Hi @mroavi ,
Thanks for feedback.
I've fixed all exceptions produced by the code of 2nd and 3rd chapters which I faced.
It is done in 1237386 and dd94718.

@mroavi mroavi closed this as completed May 21, 2019
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

3 participants