Object not injected correctly when using Guice @Provide

前端 未结 0 380
执念已碎
执念已碎 2020-12-24 09:53

I am using Guice @Provide to create a singleton object (Farm). When I execute the code below, I get n null pointer exception whenever I try to access cat member of the class

相关标签:
回答
  • 消灭零回复
提交回复
热议问题