You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <ui...@incubator.apache.org> on 2007/02/07 21:31:05 UTC
[jira] Resolved: (UIMA-288) NPE possible in PEAR Util XMLUtil
printError method
[ https://issues.apache.org/jira/browse/UIMA-288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marshall Schor resolved UIMA-288.
---------------------------------
Resolution: Fixed
Fixed, but there are still some questions - assigning to Lev to review.
Question: is this the right fix?
If "ex" is null, 3 "!" are printed to System.out, while the rest of the messages are directed to System.err. What should the behavior be in this case - the current behavior doesn't seem helpful.
> NPE possible in PEAR Util XMLUtil printError method
> ---------------------------------------------------
>
> Key: UIMA-288
> URL: https://issues.apache.org/jira/browse/UIMA-288
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework
> Affects Versions: 2.1
> Reporter: Marshall Schor
> Assigned To: Marshall Schor
> Priority: Trivial
> Fix For: 2.1
>
>
> If null is passed as the SAXParseException, there is incomplete code handling this case. Add necessary additional handling for this case.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Resolved: (UIMA-288) NPE possible in PEAR Util XMLUtil printError method
Posted by Lev Kozakov <le...@gmail.com>.
On 2/7/07, Marshall Schor (JIRA) <ui...@incubator.apache.org> wrote:
>
>
> [
> https://issues.apache.org/jira/browse/UIMA-288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Marshall Schor resolved UIMA-288.
> ---------------------------------
>
> Resolution: Fixed
>
> Fixed, but there are still some questions - assigning to Lev to review.
>
> Question: is this the right fix?
> If "ex" is null, 3 "!" are printed to System.out, while the rest of the
> messages are directed to System.err. What should the behavior be in this
> case - the current behavior doesn't seem helpful.
Well, I don't remember what was the purpose of printing 3 '!'s
there, probably, it was done for debugging. I can fix the problem by just
removing this code.
-- Lev
> NPE possible in PEAR Util XMLUtil printError method
> > ---------------------------------------------------
> >
> > Key: UIMA-288
> > URL: https://issues.apache.org/jira/browse/UIMA-288
> > Project: UIMA
> > Issue Type: Bug
> > Components: Core Java Framework
> > Affects Versions: 2.1
> > Reporter: Marshall Schor
> > Assigned To: Marshall Schor
> > Priority: Trivial
> > Fix For: 2.1
> >
> >
> > If null is passed as the SAXParseException, there is incomplete code
> handling this case. Add necessary additional handling for this case.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>