diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/util/PrintUtil.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/util/PrintUtil.js index cab15e12f572f5c59a722f9918fb84db4f74af35..fadb65587f59d2ca1cea2de627e892587ebb81cb 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/util/PrintUtil.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/util/PrintUtil.js @@ -143,6 +143,11 @@ var PrintUtil = new function() { vocabulary = profile.getVocabularyById(propertyType.vocabulary); } + if(!vocabulary && propertyType.terms) { //This should not happen, but can save the day. + vocabulary = {}; + vocabulary.terms = propertyType.terms; + } + if(vocabulary) { for(var j = 0; j < vocabulary.terms.length; j++) { if(vocabulary.terms[j].code === propertyContent) {