Closed ryanlarkin closed 5 years ago
The init() call is public and could be called outside of the getInstance method.
@greyingjay that was intentional so that at Robot initialization the Robot could initialize the subsystem.
The fix I've worked out is a simple null check in the init()
method.
Steps to reproduce:
robotInit()
finishes (subsystem.getInstance()
)subsystem.init()
)robotInit()
initialize subsystem (subsystem.init()
)