dependency isnt injected into my service
hey guys. can smb help me out. i have a service
and i get a NPE, bc smth is wrong with appconfig object. can smb help me out? thx
7 Replies
⌛
This post has been reserved for your question.
Hey @bambyzas! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Please show the Exception.
i fixed it by injecting the appConfig into MyService. but now i have a question about making the injected fields private and final
do i really need to?
Hey FF, yes I did not noticed it either. It must have thrown a NPE.
For the private-final question, pease open up a new question.
my apologies. thank you
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Post Closed
This post has been closed by <@611623200756989972>.