Looks like DatabaseUtil.getConceptIdForUnits can return null,  would makes sense to check for null here and throw an exception