sometimes text can be null
This commit is contained in:
parent
fd47e70f44
commit
f6750e135a
|
@ -196,7 +196,7 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
|
||||||
|
|
||||||
private void appendLogTextAndScroll(String text)
|
private void appendLogTextAndScroll(String text)
|
||||||
{
|
{
|
||||||
if(mTxtOrbotLog != null){
|
if(mTxtOrbotLog != null && text != null && text.length() > 0){
|
||||||
|
|
||||||
if (mTxtOrbotLog.getText().length() > MAX_LOG_LENGTH)
|
if (mTxtOrbotLog.getText().length() > MAX_LOG_LENGTH)
|
||||||
mTxtOrbotLog.setText("");
|
mTxtOrbotLog.setText("");
|
||||||
|
|
Loading…
Reference in New Issue