mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fix intermittent apparently random crash
I have no idea why this crashed. Adding a guard just in case
This commit is contained in:
parent
264483838c
commit
b16d89fb49
1 changed files with 3 additions and 1 deletions
|
|
@ -61,7 +61,9 @@ public class SingleUploadFragment extends SherlockFragment {
|
|||
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {}
|
||||
|
||||
public void afterTextChanged(Editable editable) {
|
||||
getSherlockActivity().invalidateOptionsMenu();
|
||||
if(getSherlockActivity() != null) {
|
||||
getSherlockActivity().invalidateOptionsMenu();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue