sometimes text can be null

This commit is contained in:
Nathan Freitas 2014-06-04 23:24:21 -04:00
parent fd47e70f44
commit f6750e135a
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
private void appendLogTextAndScroll(String text)
{
if(mTxtOrbotLog != null){
if(mTxtOrbotLog != null && text != null && text.length() > 0){
if (mTxtOrbotLog.getText().length() > MAX_LOG_LENGTH)
mTxtOrbotLog.setText("");