Git Product home page Git Product logo

Comments (3)

tom-weiland avatar tom-weiland commented on May 22, 2024

The only thing that could cause a NullReferenceException on line 297 of the Client class is connection being null, which it will be if you haven't initiated a connection yet. However, Riptide itself does not try to send any messages before initiating a connection, which means that you must be trying to send something before connecting...

Do you send messages in Update or from anywhere else which might execute before you call your client's Connect method?

from riptide.

corthax avatar corthax commented on May 22, 2024

Oh well. Indeed I send messages on Update before client is connected. Previous RiptideNetworking version was ok with that :D
Connection null check with some error message would be nice though, for debugging.

from riptide.

tom-weiland avatar tom-weiland commented on May 22, 2024

Previous RiptideNetworking version was ok with that

I'm pretty sure it just silently discarded the message though. It wouldn't have tried to actually send it without being connected.

Connection null check with some error message would be nice though

I mean you are getting an error message (the NullReferenceException), and the stack trace should show you exactly what your own code is calling to cause itβ€”it's just that it doesn't explicitly tell you "you can't send messages until you're connected."

from riptide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.