This is the error
# android
n
This is the error
r
it says you tried to access the property before initializing it
b
is
displayUserDetails
getting called before
bindViews
?
n
I call
displayUserDetails
in another fragment while bindviews is called on
oncreateview
of UserDetailsFragment
b
if you put two breakpoints in the debugger, are you sure that
bindViews
is being called before
displayUserDetails
?
the error makes it seem like it’s not
or maybe there’s no TextView with the id
nameTextView
in the
user_details_fragment
?
n
I actually figured it out. I was passing data to the "UserDetailsFragment" wrongly.
I have passed the data as bundle using the
arguments
property then reading them in the details fragment and it has worked.
👍 1