Open elincognito opened 10 years ago
public static void putMapped(String key, Map<String, String> map, ContentValues values, String value) { if(map == null || !map.containsKey(key)) { values.put(key, value); }
String alias = map.get(key); if(alias != null) { values.put(alias, value); } }
if map is null then a return is required otherwise String alias = map.get(key);
will throw a NullPointerException
public static void putMapped(String key, Map<String, String> map, ContentValues values, String value) { if(map == null || !map.containsKey(key)) { values.put(key, value); }
if map is null then a return is required otherwise String alias = map.get(key);
will throw a NullPointerException