diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/TransformerController.java b/wise-webapp/src/main/java/com/wisemapping/rest/TransformerController.java index f61ae747..fb3865e7 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/TransformerController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/TransformerController.java @@ -132,7 +132,9 @@ public class TransformerController extends BaseController { } // IE does not support spaces in the name... As usual ... - result.getModelMap().put("filename", filename.replaceAll(" ","_")); + if(filename!=null){ + result.getModelMap().put("filename", filename.replaceAll(" ","_")); + } return result; } }