From 8a7b455f011842d17de687b7cbb2b6589b78ac3f Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sat, 6 Nov 2021 00:52:23 +0100 Subject: initiate tor status logs with empty strings --- .../main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java b/app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java index eca0f555..3be4ce12 100644 --- a/app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java +++ b/app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java @@ -52,8 +52,8 @@ public class TorStatusObservable extends Observable { private SnowflakeStatus snowflakeStatus = SnowflakeStatus.OFF; private final TorNotificationManager torNotificationManager; private String lastError; - private String lastTorLog; - private String lastSnowflakeLog; + private String lastTorLog = ""; + private String lastSnowflakeLog = ""; private int port = -1; private int bootstrapPercent = -1; private Vector lastLogs = new Vector<>(100); @@ -253,7 +253,7 @@ public class TorStatusObservable extends Observable { case OFF: break; } - return null; + return ""; } public static void shutdownTor(Context context) { -- cgit v1.2.3