mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-10 08:00:57 +00:00
Merge pull request #1459 from nextcloud/bugfix/1458/basUrlNPE
Base url can be null
This commit is contained in:
commit
f74ce75d0a
@ -307,9 +307,12 @@ public class ProfileController extends BaseController {
|
|||||||
if (getActivity() == null) {
|
if (getActivity() == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
((TextView) getActivity()
|
|
||||||
|
if (currentUser.getBaseUrl() != null) {
|
||||||
|
((TextView) getActivity()
|
||||||
.findViewById(R.id.userinfo_baseurl))
|
.findViewById(R.id.userinfo_baseurl))
|
||||||
.setText(Uri.parse(currentUser.getBaseUrl()).getHost());
|
.setText(Uri.parse(currentUser.getBaseUrl()).getHost());
|
||||||
|
}
|
||||||
|
|
||||||
DisplayUtils.loadAvatarImage(currentUser, getActivity().findViewById(R.id.avatar_image), false);
|
DisplayUtils.loadAvatarImage(currentUser, getActivity().findViewById(R.id.avatar_image), false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user