Index: src/wmsplugin/WMSLayer.java
===================================================================
--- src/wmsplugin/WMSLayer.java	(revision 17393)
+++ src/wmsplugin/WMSLayer.java	(working copy)
@@ -301,6 +301,10 @@
 		public void actionPerformed(ActionEvent ev) {
 			File f = SaveActionBase.createAndOpenSaveFileChooser(
 					tr("Save WMS layer"), ".wms");
+			
+			if(f == null)
+				return;
+			
 			try
 			{
 				FileOutputStream fos = new FileOutputStream(f);
