Created
February 13, 2012 09:52
-
-
Save ndeverge/1815549 to your computer and use it in GitHub Desktop.
Love legacy code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Convention conv = null; | |
try { | |
conv = | |
conventionService.rechercherParId(Long.valueOf((String) request.getSession().getAttribute( | |
"conventionId"))); | |
} catch (NullPointerException e) { | |
log.error("Une erreur est survenu, l'id de la convention n'est pas en session !", e); | |
} | |
request.getSession().removeAttribute("conventionId"); | |
conv.setMO(mo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment