private static String getAuthorString(TaxonNameBase taxonName) {\r
String result = null;\r
try {\r
- if (taxonName != null && taxonName != null) {\r
- if (taxonName.isInstanceOf(NonViralName.class)) {\r
- NonViralName nonViralName = CdmBase.deproxy(taxonName, NonViralName.class);\r
- String authorshipCache = nonViralName.getAuthorshipCache();\r
-\r
- // For a misapplied name without an authorshipCache the authorString should be set to "auct."\r
- if (isMisappliedName(taxonName) && authorshipCache == null) {\r
- // Set authorshipCache to "auct."\r
- result = PesiTransformer.auctString;\r
+ if (taxonName != null) {\r
+ if (taxonName.isInstanceOf(NonViralName.class)) {\r
+ NonViralName nonViralName = CdmBase.deproxy(taxonName, NonViralName.class);\r
+ String authorshipCache = nonViralName.getAuthorshipCache();\r
+ \r
+ // For a misapplied name without an authorshipCache the authorString should be set to "auct."\r
+ if (isMisappliedName(taxonName) && authorshipCache == null) {\r
+ // Set authorshipCache to "auct."\r
+ result = PesiTransformer.auctString;\r
+ } else {\r
+ // Return the content of the authorshipCache\r
+ result = authorshipCache;\r
+ }\r
+ \r
} else {\r
- // Return the content of the authorshipCache\r
- result = authorshipCache;\r
+ logger.warn("TaxonName is not of instance NonViralName: " + taxonName.getUuid() + " (" + taxonName.getTitleCache() + ")");\r
}\r
-\r
- } else {\r
- logger.warn("TaxonName is not of instance NonViralName: " + taxonName.getUuid() + " (" + taxonName.getTitleCache() + ")");\r
}\r
- }\r
} catch (Exception e) {\r
e.printStackTrace();\r
}\r