fix: NPE when getInstance().pleroma.metadata.fieldsLimits is null
This commit is contained in:
parent
1d445b8b27
commit
d72f66b9bf
|
@ -198,7 +198,9 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
|
|||
if(!isOwnProfile)
|
||||
loadRelationship();
|
||||
else if (isInstanceAkkoma() && getInstance().isPresent())
|
||||
if(getInstance().get().pleroma != null && getInstance().get().pleroma.metadata != null && getInstance().get().pleroma.metadata.fieldsLimits != null){
|
||||
maxFields = getInstance().get().pleroma.metadata.fieldsLimits.maxFields;
|
||||
}
|
||||
}else{
|
||||
profileAccountID=getArguments().getString("profileAccountID");
|
||||
if(!getArguments().getBoolean("noAutoLoad", false))
|
||||
|
|
Loading…
Reference in New Issue