Some fixes

This commit is contained in:
Thomas 2020-09-26 19:41:21 +02:00
parent 9f25405983
commit 3697917d2b
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ public class PeertubeActivity extends AppCompatActivity {
String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null); String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null);
String instance = Helper.getLiveInstance(PeertubeActivity.this); String instance = Helper.getLiveInstance(PeertubeActivity.this);
Account account = new AccountDAO(PeertubeActivity.this, db).getUniqAccount(userId, instance); Account account = new AccountDAO(PeertubeActivity.this, db).getUniqAccount(userId, instance);
Helper.loadGiF(PeertubeActivity.this, account.getAvatar()!=null?account.getAvatar().getPath():null, my_pp); Helper.loadGiF(PeertubeActivity.this, account!=null&&account.getAvatar()!=null?account.getAvatar().getPath():null, my_pp);
if (Helper.isTablet(PeertubeActivity.this)) { if (Helper.isTablet(PeertubeActivity.this)) {