Project

General

Profile

« Previous | Next » 

Revision 6b265538

Added by Sybille Bürs over 11 years ago

merged from trunk

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/view/JsonView.java
110 110
     */
111 111
    public void render(Object entity, PrintWriter writer, String jsonpCallback, HttpServletRequest request, HttpServletResponse response) throws Exception {
112 112

  
113
        String contextPath = request.getContextPath();
113
        String contextPath = null;
114
        
115
        if (request != null)
116
        	{
117
        	contextPath = request.getContextPath();
118
        	}
114 119

  
115 120
        if(jsonConfig == null){
116 121
            logger.error("The jsonConfig must not be null. It must be set in the applicationContext.");

Also available in: Unified diff