From f6750e135a480a08d61f06a50deef01ce888f708 Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Wed, 4 Jun 2014 23:24:21 -0400 Subject: [PATCH] sometimes text can be null --- src/org/torproject/android/Orbot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/torproject/android/Orbot.java b/src/org/torproject/android/Orbot.java index 32726d3a..bc959617 100644 --- a/src/org/torproject/android/Orbot.java +++ b/src/org/torproject/android/Orbot.java @@ -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("");