Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors
handle the case when the mSession variable is null
n8fr86b1b539c230d
diff --git a/src/main/java/org/havenapp/main/service/WebServer.java b/src/main/java/org/havenapp/main/service/WebServer.javaindex d666310..a2fc731 100644--- a/src/main/java/org/havenapp/main/service/WebServer.java+++ b/src/main/java/org/havenapp/main/service/WebServer.java@@ -74,7 +74,7 @@ public class WebServer extends NanoHTTPD {cookie = new OnionCookie ("sid",mSession,100000);session.getCookies().set(cookie);}- else if (inSid == null || (inSid != null && (!safeEquals(inSid, mSession)))) {+ else if (inSid == null || mSession == null || (inSid != null && (!safeEquals(inSid, mSession)))) {showLogin(page);return newFixedLengthResponse(page.toString());}