only show notifications if we have data

This commit is contained in:
Nathan Freitas 2014-07-16 17:07:08 -04:00
parent 9d541d8aad
commit 54a39f2046
1 changed files with 7 additions and 5 deletions

View File

@ -258,15 +258,17 @@ public class TorService extends Service implements TorServiceConstants, TorConst
Node node = hmBuiltNodes.get(key);
if (node.ipAddress != null)
{
sbInfo.append(node.ipAddress);
if (node.country != null)
sbInfo.append(' ').append(node.country);
if (node.country != null)
sbInfo.append(' ').append(node.country);
if (node.organization != null)
sbInfo.append(" (").append(node.organization).append(')');
if (node.organization != null)
sbInfo.append(" (").append(node.organization).append(')');
sbInfo.append('\n');
sbInfo.append('\n');
}
}