[Swift-commit] r3267 - branches/1.0/src/org/griphyn/vdl/mapping/file

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Mar 24 19:07:31 CDT 2010


Author: hategan
Date: 2010-03-24 19:07:30 -0500 (Wed, 24 Mar 2010)
New Revision: 3267

Modified:
   branches/1.0/src/org/griphyn/vdl/mapping/file/ArrayFileMapper.java
Log:
a more user friendly exception

Modified: branches/1.0/src/org/griphyn/vdl/mapping/file/ArrayFileMapper.java
===================================================================
--- branches/1.0/src/org/griphyn/vdl/mapping/file/ArrayFileMapper.java	2010-03-24 21:59:25 UTC (rev 3266)
+++ branches/1.0/src/org/griphyn/vdl/mapping/file/ArrayFileMapper.java	2010-03-25 00:07:30 UTC (rev 3267)
@@ -21,6 +21,9 @@
 	public Collection existing() {
 		List l = new ArrayList();
 		DSHandle dn = (DSHandle) PARAM_FILES.getRawValue(this);
+		if (dn == null) {
+		    throw new RuntimeException("Missing 'files' mapper attribute");
+		}
 		Map m = dn.getArrayValue();
 		Set s = m.keySet();
 		Iterator i = s.iterator();




More information about the Swift-commit mailing list