Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c415695 authored by Danesh M's avatar Danesh M Committed by Gerrit Code Review
Browse files

CaptivePortal : Ensure uri is not null

Ensure uri is not null when proceeding with parsing netId/Responsetoken

Change-Id: I1fa2ef3f41a9508899da064b2d2256c5fc03b9f5
parent 45903344
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ public class CaptivePortalLoginActivity extends Activity {
        try {
            mURL = new URL("http", server, "/generate_204");
            final Uri dataUri = getIntent().getData();
            if (dataUri != null && !dataUri.getScheme().equals("netid")) {
            if (dataUri == null || !dataUri.getScheme().equals("netid")) {
                throw new MalformedURLException();
            }
            mNetId = Integer.parseInt(dataUri.getSchemeSpecificPart());