mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-07 23:38:40 +01:00
fixed NPE while updating poll status
This commit is contained in:
parent
8928ffdba1
commit
0fcf75b21e
@ -175,7 +175,9 @@ public class CardPollFragment extends BaseSupportFragment implements
|
||||
|
||||
@Override
|
||||
public ParcelableCardEntity doLongOperation(CardDataMap cardDataMap) {
|
||||
final TwitterCaps caps = TwitterAPIFactory.getTwitterInstance(getContext(),
|
||||
final Context context = getContext();
|
||||
if (context == null) return null;
|
||||
final TwitterCaps caps = TwitterAPIFactory.getTwitterInstance(context,
|
||||
card.account_key, true, true, TwitterCaps.class);
|
||||
if (caps == null) return null;
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user