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

Commit b9116af2 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix SubtypeLocaleUtils.getSubtypeNameForLogging accepting null

Change-Id: Ic5cb55e24a2d843027ccc4e8e5d6954f9391c125
parent 5c6766a5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ import java.util.HashMap;
import java.util.Locale;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * A helper class to deal with subtype locales.
@@ -273,7 +274,7 @@ public final class SubtypeLocaleUtils {
    }

    @Nonnull
    public static String getSubtypeNameForLogging(@Nonnull final InputMethodSubtype subtype) {
    public static String getSubtypeNameForLogging(@Nullable final InputMethodSubtype subtype) {
        if (subtype == null) {
            return "<null subtype>";
        }