Commit c4006d34 authored by granier's avatar granier
Browse files

fix null pointer on noteFichier

parent a20f5dc8
......@@ -199,6 +199,7 @@ public class ArchiveConverterMain {
}
archiveConverter = new DCToSeda21Converter(commandLine.getOptionValue("c"), planClassementPath);
archiveConverter.setOnlyManifest(true);
((AbstractArchiveConverter)archiveConverter).setSipType(formalism);
}else if(formalism.equals("seda1")) {
archiveConverter = new Seda1ToSeda21Converter();
archiveConverter.setOnlyManifest(true);
......
......@@ -1856,7 +1856,7 @@ public class DCToSeda21Converter extends AbstractArchiveConverter {
//noteFichier
String noteFichier = properties.getProperty(NOTE_FICHIER);
if ("true".equalsIgnoreCase(noteFichier.trim()) && fichMeta.getNoteFichier() != null) {
if (noteFichier != null && "true".equalsIgnoreCase(noteFichier.trim()) && fichMeta.getNoteFichier() != null) {
content.setSource(fichMeta.getNoteFichier().getValue());
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment