Revision 1768
Added by Jing Tao over 21 years ago
src/edu/ucsb/nceas/metacat/MetacatReplication.java | ||
---|---|---|
1086 | 1086 |
//if this is a package file, put it at the end |
1087 | 1087 |
//because if a package file is read before all of the files it |
1088 | 1088 |
//refers to are loaded then there is an error |
1089 |
if(!packagedoctypes.contains(recordDoctype)) |
|
1089 |
if(recordDoctype != null && !packagedoctypes.contains(recordDoctype))
|
|
1090 | 1090 |
{ |
1091 | 1091 |
//If this is not data file |
1092 | 1092 |
if (!recordDoctype.equals("BIN")) |
... | ... | |
1131 | 1131 |
{ //don't replicate data files |
1132 | 1132 |
Vector packagedoctypes = MetaCatUtil.getOptionList( |
1133 | 1133 |
MetaCatUtil.getOption("packagedoctype")); |
1134 |
if(!packagedoctypes.contains(recordDoctype)) |
|
1134 |
if(recordDoctype != null && !packagedoctypes.contains(recordDoctype))
|
|
1135 | 1135 |
{ //if this is a package file, put it at the end |
1136 | 1136 |
//because if a package file is read before all of the files it |
1137 | 1137 |
//refers to are loaded then there is an error |
Also available in: Unified diff
Fixed bug in replication if doctype is null.