Index: servoy.properties =================================================================== --- servoy.properties (revision 12) +++ servoy.properties (working copy) @@ -1,3 +1,3 @@ # Change this to the path of the Servoy 4 installation where the plugin should be installed # Note: do not check this file in with your path, the contents is just a template. -servoy = /path/to/servoy +servoy = c:/servoy/Servoy52 Index: src/com/servoy/plugins/jasperreports/JasperReportsProvider.java =================================================================== --- src/com/servoy/plugins/jasperreports/JasperReportsProvider.java (revision 12) +++ src/com/servoy/plugins/jasperreports/JasperReportsProvider.java (working copy) @@ -609,10 +609,12 @@ public void saveByteArrayToFile(String filename, byte[] buffertje) throws Exception { - FileOutputStream fos = new FileOutputStream(filename); - fos.write(buffertje); - fos.flush(); - fos.close(); + if (filename != null && filename.trim().length() > 0) { + FileOutputStream fos = new FileOutputStream(filename); + fos.write(buffertje); + fos.flush(); + fos.close(); + } } public boolean js_compileReport(String report) throws Error, Exception {