You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Volker Karlmeier (JIRA)" <ji...@apache.org> on 2008/11/16 22:10:44 UTC

[jira] Created: (DIGESTER-130) In debug mode, log message leads to NullPointerException when entityURL is null

In debug mode, log message leads to NullPointerException when entityURL is null
-------------------------------------------------------------------------------

                 Key: DIGESTER-130
                 URL: https://issues.apache.org/jira/browse/DIGESTER-130
             Project: Commons Digester
          Issue Type: Bug
    Affects Versions: 1.8
         Environment: all
            Reporter: Volker Karlmeier
            Priority: Minor


Index: /home/volker/workspace/commons-digester/src/java/org/apache/commons/digester/Digester.java
===================================================================
--- /home/volker/workspace/commons-digester/src/java/org/apache/commons/digester/Digester.java	(revision 718060)
+++ /home/volker/workspace/commons-digester/src/java/org/apache/commons/digester/Digester.java	(working copy)
@@ -1599,7 +1599,10 @@
             if (systemId == null) {
                 // cannot resolve
                 if (log.isDebugEnabled()) {
-                    log.debug(" Cannot resolve entity: '" + entityURL + "'");
+                	if (entityURL == null)
+                		log.debug(" Cannot resolve entity: entityURL is null");
+                	else
+                		log.debug(" Cannot resolve entity: '" + entityURL + "'");
                 }
                 return (null);
                 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIGESTER-130) In debug mode, log message leads to NullPointerException when entityURL is null

Posted by "Volker Karlmeier (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIGESTER-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Volker Karlmeier updated DIGESTER-130:
--------------------------------------

    Description: In debug mode, entityURL == null leads to a NullPointerException when logging  (was: Index: /home/volker/workspace/commons-digester/src/java/org/apache/commons/digester/Digester.java
===================================================================
--- /home/volker/workspace/commons-digester/src/java/org/apache/commons/digester/Digester.java	(revision 718060)
+++ /home/volker/workspace/commons-digester/src/java/org/apache/commons/digester/Digester.java	(working copy)
@@ -1599,7 +1599,10 @@
             if (systemId == null) {
                 // cannot resolve
                 if (log.isDebugEnabled()) {
-                    log.debug(" Cannot resolve entity: '" + entityURL + "'");
+                	if (entityURL == null)
+                		log.debug(" Cannot resolve entity: entityURL is null");
+                	else
+                		log.debug(" Cannot resolve entity: '" + entityURL + "'");
                 }
                 return (null);
                 
)

> In debug mode, log message leads to NullPointerException when entityURL is null
> -------------------------------------------------------------------------------
>
>                 Key: DIGESTER-130
>                 URL: https://issues.apache.org/jira/browse/DIGESTER-130
>             Project: Commons Digester
>          Issue Type: Bug
>    Affects Versions: 1.8
>         Environment: all
>            Reporter: Volker Karlmeier
>            Priority: Minor
>         Attachments: digester.patch
>
>   Original Estimate: 0.05h
>  Remaining Estimate: 0.05h
>
> In debug mode, entityURL == null leads to a NullPointerException when logging

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIGESTER-130) In debug mode, log message leads to NullPointerException when entityURL is null

Posted by "Volker Karlmeier (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIGESTER-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Volker Karlmeier updated DIGESTER-130:
--------------------------------------

    Attachment: digester.patch

> In debug mode, log message leads to NullPointerException when entityURL is null
> -------------------------------------------------------------------------------
>
>                 Key: DIGESTER-130
>                 URL: https://issues.apache.org/jira/browse/DIGESTER-130
>             Project: Commons Digester
>          Issue Type: Bug
>    Affects Versions: 1.8
>         Environment: all
>            Reporter: Volker Karlmeier
>            Priority: Minor
>         Attachments: digester.patch
>
>   Original Estimate: 0.05h
>  Remaining Estimate: 0.05h
>
> Index: /home/volker/workspace/commons-digester/src/java/org/apache/commons/digester/Digester.java
> ===================================================================
> --- /home/volker/workspace/commons-digester/src/java/org/apache/commons/digester/Digester.java	(revision 718060)
> +++ /home/volker/workspace/commons-digester/src/java/org/apache/commons/digester/Digester.java	(working copy)
> @@ -1599,7 +1599,10 @@
>              if (systemId == null) {
>                  // cannot resolve
>                  if (log.isDebugEnabled()) {
> -                    log.debug(" Cannot resolve entity: '" + entityURL + "'");
> +                	if (entityURL == null)
> +                		log.debug(" Cannot resolve entity: entityURL is null");
> +                	else
> +                		log.debug(" Cannot resolve entity: '" + entityURL + "'");
>                  }
>                  return (null);
>                  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (DIGESTER-130) In debug mode, log message leads to NullPointerException when entityURL is null

Posted by "Rahul Akolkar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIGESTER-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rahul Akolkar resolved DIGESTER-130.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0
                   1.8.1

Thanks, a similar patch has been applied as part of DIGESTER-122, so marking as fixed.


> In debug mode, log message leads to NullPointerException when entityURL is null
> -------------------------------------------------------------------------------
>
>                 Key: DIGESTER-130
>                 URL: https://issues.apache.org/jira/browse/DIGESTER-130
>             Project: Commons Digester
>          Issue Type: Bug
>    Affects Versions: 1.8
>         Environment: all
>            Reporter: Volker Karlmeier
>            Priority: Minor
>             Fix For: 1.8.1, 2.0
>
>         Attachments: digester.patch
>
>   Original Estimate: 0.05h
>  Remaining Estimate: 0.05h
>
> In debug mode, entityURL == null leads to a NullPointerException when logging

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.