[Swift-commit] r2174 - trunk/src/org/griphyn/vdl/mapping/file

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Aug 4 13:55:46 CDT 2008


Author: benc
Date: 2008-08-04 13:55:46 -0500 (Mon, 04 Aug 2008)
New Revision: 2174

Modified:
   trunk/src/org/griphyn/vdl/mapping/file/FileSystemArrayMapper.java
Log:
fix null pointer exception when this mapper is (mis)used to map an unstructured type; this will now result in a (nicer?) mapping exception.

Modified: trunk/src/org/griphyn/vdl/mapping/file/FileSystemArrayMapper.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/file/FileSystemArrayMapper.java	2008-08-04 14:33:56 UTC (rev 2173)
+++ trunk/src/org/griphyn/vdl/mapping/file/FileSystemArrayMapper.java	2008-08-04 18:55:46 UTC (rev 2174)
@@ -24,7 +24,7 @@
 	}
 	
 	public PhysicalFormat map(Path path) {
-		if (path.size()> 1) {
+		if (path.size()!=1) {
 			return null;
 		}
 		if (!path.isArrayIndex(0)) {




More information about the Swift-commit mailing list