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

Table.Write() with alternative format throws null ref #64

Open
georgeamason opened this issue Aug 14, 2023 · 3 comments
Open

Table.Write() with alternative format throws null ref #64

georgeamason opened this issue Aug 14, 2023 · 3 comments

Comments

@georgeamason
Copy link

georgeamason commented Aug 14, 2023

Setting the format inside the constructor of table.Write to Format.Alternative, causes a null reference exception to be thrown. Happening somewhere in ToStringAlternative() method

System.NullReferenceException: Object reference not set to an instance of an object.
   at ConsoleTables.ConsoleTable.ToStringAlternative()
   at ConsoleTables.ConsoleTable.Write(Format format)
@kieranbenton
Copy link

Seeing the same thing:

Error Message:
   System.NullReferenceException : Object reference not set to an instance of an object.
  Stack Trace:
     at ConsoleTables.ConsoleTable.ToStringAlternative()

@georgeamason
Copy link
Author

#67

@Nobody84
Copy link

I'm using Release 2.6.1 and still got the error.

System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=ConsoleTables
StackTrace:
at ConsoleTables.ConsoleTable.ToStringAlternative() in /home/runner/work/ConsoleTables/ConsoleTables/src/ConsoleTables/ConsoleTable.cs:line 254
at Program.<>c__DisplayClass0_0.<<

$>g__Print|3>d.MoveNext() in .....\Program.cs:line 89
at System.Threading.Tasks.Task.<>c.b__128_1(Object state) in System.Threading.Tasks\Task.cs:line 1936
at System.Threading.ThreadPoolWorkQueue.Dispatch() in System.Threading\ThreadPoolWorkQueue.cs:line 690
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() in System.Threading\PortableThreadPool.cs:line 1328

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