Revision 17b1eb1a
Added by Andreas Müller almost 2 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/name/TaxonNameDefaultCacheStrategy.java | ||
---|---|---|
149 | 149 |
public String getAuthorshipCache(TaxonName taxonName) { |
150 | 150 |
if (taxonName == null){ |
151 | 151 |
return null; |
152 |
}else if (taxonName.getNameType().isViral()){
|
|
152 |
}else if (taxonName.isViral()){ |
|
153 | 153 |
return null; |
154 | 154 |
}else if(taxonName.isProtectedAuthorshipCache() == true) { |
155 | 155 |
//cache protected |
Also available in: Unified diff
fix potential (but very unlikely) NPE in TaxonName.getAuthorshipCache