It's saying that you are calling your hashcode method on a null object which is - GetShopsResponse.Data.Shop.Attachment
you should nullcheck it first like this:
GetShopsResponse.Data.Shop.Attachment?.hascode()
I think you passed some data in next fragment (B), then you perform some operation in fragment (B), so if the data is null application was crashed. so check your next fragment (B) and maintain null check condition. if already maintained then you can share code where you fetching data in next fragment.
EDITED:-
if (arguments != null) {
data = requireArguments().getParcelable<GetShopsResponse.Data.Shop::class.java>("shopData")
}
note:- check every data with null check, if any data is null then app will crash.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.