Advertisement
mstranieri

Preview articolo blog

Oct 30th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.52 KB | None | 0 0
  1. GRAVE: Servlet.service() for servlet [website] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
  2. java.lang.NullPointerException
  3.     at com.softfobia.margiani.view.controllers.CastedduOnllineArticoloViewController.populateModel(CastedduOnllineArticoloViewController.java:63)
  4.     at org.riotfamily.website.view.ConfigurableViewController.handleRequest(ConfigurableViewController.java:87)
  5.     at com.softfobia.margiani.view.controllers.ArticoloViewController.handleRequest(ArticoloViewController.java:32)
  6.     at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
  7.     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
  8.     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
  9.     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
  10.    
  11. /*  ed il punto dove si rompe è questo qui sotto  */
  12.  
  13.  
  14.     @Override
  15.     protected void populateModel(Model model, HttpServletRequest request) {
  16.    
  17.         super.populateModel(model, request);
  18.         ArticoloResult media = (ArticoloResult) request.getAttribute("articolo");
  19.        
  20.         // QUi si rompe, è la linea 63, "media" è NULL.
  21.         sinnovaService.getGamificationService().aggiungiAttivita(TipoAzione.PASSIVE_VIEW_ARTICOLO, media.getAutore(), media.getId().toString(), Canale.ARTICOLO, media.getTitolo(), media.getTestoBreve(), media.getImageUrl(), media.getUrlArticolo());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement