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

Commit 0fa902cf authored by Roshan Pius's avatar Roshan Pius Committed by android-build-merger
Browse files

Merge "WifiSsid: Catch String out of bound exception" into qt-dev

am: 4ec8b460

Change-Id: I06adbd18505eb8848802eb1d340971f80d641419
parents bb945771 4ec8b460
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -129,6 +129,8 @@ public class WifiSsid implements Parcelable {
                                val = Integer.parseInt(asciiEncoded.substring(i, i + 2), HEX_RADIX);
                            } catch (NumberFormatException e) {
                                val = -1;
                            } catch (StringIndexOutOfBoundsException e) {
                                val = -1;
                            }
                            if (val < 0) {
                                val = Character.digit(asciiEncoded.charAt(i), HEX_RADIX);