Fix SubtypeLocaleUtils.getSubtypeNameForLogging accepting null

Change-Id: Ic5cb55e24a2d843027ccc4e8e5d6954f9391c125
main
Tadashi G. Takaoka 2014-11-19 11:57:49 +09:00
parent 5c6766a58d
commit b9116af29f
1 changed files with 2 additions and 1 deletions

View File

@ -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>";
}