Ignore:
Timestamp:
06/03/10 13:00:02 (10 years ago)
Author:
melissa
Message:

Synced up export/MetadataConverter fixes between trunk and 4.2. OME-TIFF export and re-import should be working again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/autogen/src/MetadataAutogen.java

    r6266 r6459  
    200200        for (int k=1; k<j+indent; k++) spaces.append("  "); 
    201201        out.println(spaces + "}"); 
     202        out.println(spaces + "} catch (NullPointerException e) { }"); 
    202203      } 
    203204 
     
    209210        String iVar = q.var(index + "Index"); 
    210211        String countVar = iVar.replaceFirst("Index$", "Count"); 
     212        out.println(spaces + "try {"); 
    211213        out.println(spaces + "int " + countVar + " = " + 
    212214          "src.get" + index + "Count" + "(" + 
     
    225227        String type = q.defaultType(); 
    226228        String var = q.var(methodName) + "Value"; 
     229        out.println(spaces + "try {"); 
    227230        out.println(spaces + "  " + type + " " + var + " = " + 
    228231          "src.get" + methodName + "(" + iList + ");"); 
    229232        out.println(spaces + "  if (" + var + " != null) " + 
    230233          "dest.set" + methodName + "(" + var + ", " + iList + ");"); 
     234        out.println(spaces + "} catch (NullPointerException e) { }"); 
    231235      } 
    232236    } 
     
    238242      for (int k=1; k<j+indent; k++) spaces.append("  "); 
    239243      out.println(spaces + "}"); 
     244      out.println(spaces + "} catch (NullPointerException e) { }"); 
    240245    } 
    241246 
Note: See TracChangeset for help on using the changeset viewer.