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

Commit 9613157d authored by Chad Brubaker's avatar Chad Brubaker
Browse files

Add null check to getConfigForHostname

bug: 26144676
Change-Id: I18f50940846f1ce8109560c63ce2a87ce084d9e5
parent 224318aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ public final class ApplicationConfig {
     */
    public NetworkSecurityConfig getConfigForHostname(String hostname) {
        ensureInitialized();
        if (hostname.isEmpty() || mConfigs == null) {
        if (hostname == null || hostname.isEmpty() || mConfigs == null) {
            return mDefaultConfig;
        }
        if (hostname.charAt(0) ==  '.') {