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

Commit 07f5e9b6 authored by Suchand Ghosh's avatar Suchand Ghosh Committed by Gerrit - the friendly Code Review server
Browse files

IMS: Fix dialer app crash due to NPE.

Add null check to fix the crash.

Change-Id: I9cc9ea2d803e9833873ccc678d62c960f1e5e49a
CRs-Fixed: 769565
parent 708ba340
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -149,7 +149,8 @@ public class SearchFragment extends PhoneNumberPickerFragment {

        // Check if actual number had + sign as the first character and query string does not, then
        // return a number with a + sign prefixed to the query string. That will be the dial string.
        if (actualNumber.startsWith("+") && !(getQueryString().startsWith("+"))) {
        if ((actualNumber != null) && actualNumber.startsWith("+") &&
                !(getQueryString().startsWith("+"))) {
            number.append('+');
        }
        number.append(getQueryString());