commit f6750e135a480a08d61f06a50deef01ce888f708
Author: Nathan Freitas <nat...@freitas.net>
Date:   Wed Jun 4 23:24:21 2014 -0400

    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 32726d3..bc95961 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("");



_______________________________________________
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to