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

Commit 23bd6079 authored by Shareef Ali's avatar Shareef Ali Committed by Desterly
Browse files

SamsungQualcommRIL: fix NPE

Change-Id: I640228aee5424605d3df5c491f1c36ea72a6d3a7
parent a0ca848c
Loading
Loading
Loading
Loading
+16 −14
Original line number Diff line number Diff line
@@ -503,7 +503,8 @@ public class SamsungQualcommRIL extends RIL implements CommandsInterface {
    operatorCheck(Parcel p) {
        String response[] = (String[])responseStrings(p);
        for(int i=0; i<response.length; i++){
            if (response[i]!= null&&i<2){
            if (response[i]!= null){
                if (i<2){
                    if (response[i].equals("       Empty") || (response[i].equals("") && !isGSM)) {
                        response[i]=operator;
                    } else if (!response[i].equals(""))  {
@@ -521,6 +522,7 @@ public class SamsungQualcommRIL extends RIL implements CommandsInterface {
                        response[i]=homeOperator;
                }
            }
        }
        return response;
    }
    // handle exceptions