public List<Gist> getGists(final String user) { List<Gist> gists = null; try { gists = service.getGists(user); } catch (IOException e) { log.error("IOException in getGists: {}", user, e); } catch (NullPointerException npe) { log.error("NullPointerException getting gists: {}", user, npe); } return gists; }