When you do new ChannelManager()
, you are not using Guice injection, so your injected fields are null.
To inject your ChannelManager
, either use the @Inject
annotation or use the following code to create your instance:
ChannelManager myChannelManager = RoboGuice.getInjector(this).getInstance(ChannelManager.class);