robotoworks / mechanoid

Eclipse plugin providing a set of DSL's for the rapid development of Android apps
58 stars 26 forks source link

Bug in ContentValuesUtil #230

Open elincognito opened 10 years ago

elincognito commented 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