You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows you to instantiate stuff as you need to, especially if your verticle doesn't have a default constructor, hence Vert.x cannot instantiate it, then pass it to Vert.x so that it goes through "the verticle lifecycle" (init, start, ...).
I was getting an NPE when referring to a vertx instance in one of the 2 verticles, so I did this:
whereas the example in the project is like so:
using the second example, how does the vertx instance get shared? is it basically a global?
the Null Pointer Exception I was getting was here:
so I had to change it to:
kinda weird TBH
The text was updated successfully, but these errors were encountered: