user
04/09/2018, 3:32 PMinstanceOf()
overrides instance value. Use nullable instance and check for null or use lateinit and isInitialized before set instance to the field.
But, actually, just remove companion object and use object MyRxBus
instead to get correct implementation of singleton with better syntax (no instanceOf calls)