public static String getFullPersonAddress(Person p) { String address = "-/-/-/-/-/-"; try { // Country/Province/District/Sector/Cell/Umudugudu PersonAddress pa = null; if (p != null) pa = p.getPersonAddress(); if (pa != null) { address = ((pa.getCountry() != null) ? pa.getCountry() : "-") + " / " + ((pa.getStateProvince() != null) ? pa.getStateProvince() : "-") + " / " + ((pa.getCountyDistrict() != null) ? pa.getCountyDistrict() : "-") + " / " + ((pa.getCityVillage() != null) ? pa.getCityVillage() : "-") + " / " + ((pa.getNeighborhoodCell() != null) ? pa.getNeighborhoodCell() : "-") + " / " + ((pa.getAddress1() != null) ? pa.getAddress1() : "-"); } else return address; return address; } catch (Exception e) { log.error(">>>>>>>>>>>>>>>>>>>VCT>>Module>>Tag>>>> An error occured : " + e.getMessage()); e.printStackTrace(); return address; } }