Closed lcasburn closed 10 years ago
ReceiveFragment.java:267
Toast.makeText(getActivity(), R.string.receive_failedTxt, Toast.LENGTH_LONG).show();
The params to makeText are constant except for getActivity(). Its possible this method was called before the Fragment was 'attached' to the Activity.
We should just check that getActivity is not null before generating Toast.
ok its wrapped in a conditional. I was a bit unsure to wrap the Toast or the whole block, but if there is no Activity, the other UI elements probably arent ready either.
commit 0ad61aea
Looks good as is. It makes sense to wrap the whole block. Go ahead and commit.
its been committed directly to master.
This shows the logging output and stacktrace from error.