In activity in Toolbar I got a button which need to call method from fragment and update list in that fragment. Now it is an error. Calling in activity
@Over
In my case, this problem occurred when I was calling getString()
getString()
changing this calls to getActivity().getString() solved the problem.
getActivity().getString()