Use of null value if debug is enabled in Digester.resolveEntity()
-----------------------------------------------------------------
Key: DIGESTER-122
URL: https://issues.apache.org/jira/browse/DIGESTER-122
Project: Commons Digester
Issue Type: Bug
Affects Versions: 1.8
Reporter: David Dillard
Priority: Minor
Here's the code:
if (entityURL == null) {
if (systemId == null) {
// cannot resolve
if (log.isDebugEnabled()) {
log.debug(" Cannot resolve entity: '" + entityURL + "'");
entityURL is known to be null and then it's used in the log message.
This was detected by FindBugs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.