question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Null pointer exception

See original GitHub issue

Not sure when it happens, but it does sometimes happen (v2.0.8): (it also completely crashes the application since it’s not caught with a try-except)

Description: The process was terminated due to an unhandled exception. Exception Info: System.NullReferenceException at CryptoExchange.Net.Implementation.BaseSocket.Handle[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.List1<System.Action1<System.__Canon>>, System.__Canon) at CryptoExchange.Net.Implementation.BaseSocket.<.ctor>b__10_2(System.Object, SuperSocket.ClientEngine.ErrorEventArgs) at WebSocket4Net.WebSocket.client_Error(System.Object, SuperSocket.ClientEngine.ErrorEventArgs) at SuperSocket.ClientEngine.TcpClientSession.DetectConnected() at SuperSocket.ClientEngine.TcpClientSession.TrySend(System.ArraySegment1<Byte>) at SuperSocket.ClientEngine.ClientSession.Send(System.ArraySegment1<Byte>) at WebSocket4Net.Protocol.DraftHybi10Processor.SendMessage(WebSocket4Net.WebSocket, Int32, System.String) at WebSocket4Net.WebSocket.OnDataReceived(Byte[], Int32, Int32) at SuperSocket.ClientEngine.AuthenticatedStreamTcpSession.OnDataRead(System.IAsyncResult) at System.Net.LazyAsyncResult.Complete(IntPtr) at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr) at System.Net.Security._SslStream.ProcessFrameBody(Int32, Byte[], Int32, Int32, System.Net.AsyncProtocolRequest) at System.Net.Security._SslStream.ReadFrameCallback(System.Net.AsyncProtocolRequest) at System.Net.AsyncProtocolRequest.CompleteRequest(Int32) at System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32) at System.Net.FixedSizeReader.ReadCallback(System.IAsyncResult) at System.Net.LazyAsyncResult.Complete(IntPtr) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Net.ContextAwareResult.Complete(IntPtr) at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr) at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
80dBcommented, Mar 27, 2018

We’re running 2.0.10 since this morning (it crashed again last night). It doesn’t always crash (may be once every few days). Will keep you updated.

0reactions
JKorfcommented, Apr 5, 2018

I’ve done some work on the reconnect logic, should work again now. Let me know if something isn’t working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NullPointerException (Java Platform SE 8 )
Thrown when an application attempts to use null in a case where an object is required. These include: ... Applications should throw instances...
Read more >
How to Fix and Avoid NullPointerException in Java
The NullPointerException occurs due to a situation in application code where an uninitialized object is attempted to be accessed or modified.
Read more >
Null Pointer Exception In Java
NullPointerException is thrown when program attempts to use an object reference that has the null value. These can be: Invoking a method from...
Read more >
java - What is a NullPointerException, and how do I fix it?
The NullPointerException (NPE) typically occurs when you declare a variable but did not create an object and assign it to the variable ...
Read more >
Java NullPointerException - Detect, Fix, and Best Practices
NullPointerException is raised in an application when we are trying to do some operation on null where an object is required. Some of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found