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

NRE on WriteLine with newest package version? #3

Closed
WasabiFan opened this issue Apr 25, 2015 · 1 comment
Closed

NRE on WriteLine with newest package version? #3

WasabiFan opened this issue Apr 25, 2015 · 1 comment

Comments

@WasabiFan
Copy link
Contributor

I just updated my NuGet packages for my project and discovered that the newest version of this library throws an exception when I call the Console's WriteLine method. The exception is:

System.NullReferenceException was unhandled
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Tharga.Toolkit.Console
  StackTrace:
       at Tharga.Toolkit.Console.Command.Base.InputManager.LinesInsertedEvent(Object sender, LinesInsertedEventArgs e)
       at Tharga.Toolkit.Console.Command.Base.SystemConsoleBase.InvokeLinesInsertedEvent(Int32 lineCount)
       at Tharga.Toolkit.Console.Command.Base.SystemConsoleBase.WriteLine(String value, OutputLevel level)
       at ...

Is there something new that I need to call to initialize the console with this new version?

@poxet
Copy link
Collaborator

poxet commented Apr 25, 2015

A plain and simple bug. When calling the console's WriteLine prior to using a command input this issue appeared.

This issue should be fixed by version 1.4.9 that is published on nuget.org now.

@poxet poxet closed this as completed Apr 25, 2015
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

2 participants