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

Commit f98e1c72 authored by Mohamad Ayyash's avatar Mohamad Ayyash
Browse files

AlsaCardsParser: Ensure line is not NULL when reading Cards File.



Change-Id: I5136bbb776bbbf97229b2d96975b819a94232d66
Signed-off-by: default avatarMohamad Ayyash <mkayyash@google.com>
parent 63f0a7d0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -117,6 +117,9 @@ public class AlsaCardsParser {
                cardRecord.parse(line, 0);

                line = bufferedReader.readLine();
                if (line == null) {
                    break;
                }
                if (DEBUG) {
                    Slog.i(TAG, "  " + line);
                }