DaBInImporter: NPE bei der Term-Zuordnung der Arbeitspapiere behoben.
git-svn-id: https://svn.libreccm.org/ccm/trunk@655 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
d080827c13
commit
fba978d8bd
|
|
@ -161,7 +161,7 @@ public class DaBInImporter extends Program {
|
||||||
|
|
||||||
System.out.println("");
|
System.out.println("");
|
||||||
System.out.println("");
|
System.out.println("");
|
||||||
System.out.println("DaBInImporter starting...");
|
System.out.println("DaBInImporter is starting...");
|
||||||
|
|
||||||
//Get command line arguments...
|
//Get command line arguments...
|
||||||
args = cmdLine.getArgs();
|
args = cmdLine.getArgs();
|
||||||
|
|
@ -2738,12 +2738,13 @@ public class DaBInImporter extends Program {
|
||||||
//publications.addItem(workingPaper);
|
//publications.addItem(workingPaper);
|
||||||
workingPaperMap.put(workingPaperData.getDabinId(), workingPaper);
|
workingPaperMap.put(workingPaperData.getDabinId(), workingPaper);
|
||||||
insertIntoAZFolder(workingPaper, publicationsAlpha);
|
insertIntoAZFolder(workingPaper, publicationsAlpha);
|
||||||
Term term = termsDomain.getTerm(workingPaperTerms.get(Integer.toString(((Publication) workingPaper.
|
WorkingPaper primary = (WorkingPaper) workingPaper.getPrimaryInstance();
|
||||||
getPrimaryInstance()).
|
String yearStr = Integer.toString(primary.getYearOfPublication());
|
||||||
getYearOfPublication())).getUniqueID());
|
Term term = workingPaperTerms.get(yearStr);
|
||||||
if (term == null) {
|
if (term == null) {
|
||||||
term = workingPapersTerm;
|
term = workingPapersTerm;
|
||||||
}
|
}
|
||||||
|
term = termsDomain.getTerm(term.getUniqueID());
|
||||||
term.addObject(workingPaper);
|
term.addObject(workingPaper);
|
||||||
term.save();
|
term.save();
|
||||||
|
|
||||||
|
|
@ -3328,7 +3329,7 @@ public class DaBInImporter extends Program {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
System.err.println("Query for publication years failed.");
|
System.err.println("Query for publication years of working papers failed.");
|
||||||
ex.printStackTrace(System.err);
|
ex.printStackTrace(System.err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue